Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a hidden field with a default value from the query string. Depending on this value other fields should be shown or hidden (using the conditionals). However, the fields are not reacting, they stay visible even when the hidden field is empty.
What am I doing wrong?
Thank you for the feedback.
Comments
Comment #1
quicksketchHi @maartendeblock, thanks for your question. This seems like it might be a bug related to #1580700: Hidden "secure value" component losing its token (%get, %post) value on webform submission. We have some problems handling "secure" hidden fields right now. Could you try changing the component "Hidden type" setting to use an HTML hidden element and see if that helps the situation? For same-page conditionals, they are controlled by JavaScript but "secure" hidden fields are not shown on the page, so the JavaScript can't react to it.
Comment #2
quicksketchLooks like we already have a bug reported at #2107065: Same-page conditionals based on values in hidden fields do not work.