@thecooltechguy

Account created on 20 April 2021, over 3 years ago
#

Recent comments

Yes, we are testing a Drupal 10 version that we will release soon!

Hi! Just wanted to see if there are any solutions/possible workarounds for this issue, that I could try? thanks!

When embedding single-page forms using the render array approach explained above:

1. If I do #lazy => FALSE, conditional logic doesn't work
2. If I do #lazy => TRUE, conditional logic works

When embedding multi-page forms using the render array approach explained above:

1. If I do #lazy => FALSE, conditional logic doesn't work on any page
2. If I do #lazy => TRUE, conditional logic works ONLY on the first page. It does not work on any subsequent page.

Side note:
I also noticed that there is no page refresh when going between pages in a webform embedded with a render array, unlike what happens in a block-embedded webform, where the page is refreshed when going between pages -- and conditional logic works in blocks.

So I think that whether or not the page refreshes has something to do with whether or not the conditional logic works, etc. I'm not 100% sure on this, just a suspicion.

There are no errors in the browser console.

By "works" and "does not work", I meant that the conditional behavior of the elements isn't working. For example, say that I make an element that is conditionally disabled when a checkbox is checked. When I view the webform in the View or Test pages, it works as expected -- when I check the checkbox, the element is disabled, and vice versa. However, when I embed the webform as described in my issue, this no longer works: if I check the checkbox, the element doesn't become disabled, etc.

This is an example of conditional logic that doesn't work for webform elements when rendered/embedded via Drupal.

Thanks for your help, and lmk if I can further clarify anything!

Production build 0.71.5 2024