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 webform in which I created a field using the "Webform References" module. This field contains taxonomy terms from a vocabulary. Then when I want to apply a webform conditional, I am not able to see this field under the dropdown after the IF dropdown list, however, the field show under the THEN dropdown list.
I need to be able to select and compare the term reference field with a string in order to show another field.
Anybody has this same issue?
Thanks
Comments
Comment #1
DanChadwick CreditAttribution: DanChadwick commentedThis is really a feature request for webform references to support conditionals. The comparison will be tricky, I fear.
Comment #2
yaach CreditAttribution: yaach commentedHi Dan,
Thanks for your quick response. I will imagine this feature would be beneficial and I am very surprised nobody has request this yet. However, I was just wondering and trying to look at the webform module code, where (in the code) webform populates the two lists (IF - THEN).
Thanks
Comment #4
sumitmadan CreditAttribution: sumitmadan commentedCommitted in dev. It doesn't working with Autocomplete widget.
Comment #5
DanChadwick CreditAttribution: DanChadwick commentedYes. At this point, I don't foresee introducing an API for a component to supply an alternative UI to the right hand operand of the conditional. The select component's select list is built-in (hard coded).
Thanks for your help with this.
Comment #6
yaach CreditAttribution: yaach commentedThanks @sumitmadan. I have verified your changes and now I am able to see a Term Reference component under the IF condition.