Select options not updating in conditionals UI

The select options are not opdating if you change to another select field in de conditional UI of a webform.

Steps to reproduce:

  1. Add webform
  2. add 2 select option fields, both with different, random options
  3. go to Conditionals tab, add condition
  4. Select first option-field as condition, correct options are shown in dropdown next to it
  5. Select second option-field, now de options don't change accordingly, the options of the first field remain

To add to this: if you add a third field from another type and change to that in the conditional UI and THEN change to select2, the correct options are shown. Only, if you select another option then the first one, this is never saved. The condition is always saved with the first option selected.

Tested with both 4.7 and 4.dev in a clean environment.

Comments

danchadwick’s picture

Priority: Normal » Minor
Status: Active » Fixed

Thanks. That's been there a looong time. It only happens when you switch directly from one source select component to another source select component.

Minor code cleanup and commenting too.

Committed to 7.x-4.x and 8.x.

danchadwick’s picture

Priority: Minor » Normal

Whoops. Normal priority.

  • DanChadwick committed 2ffafbe on 8.x-4.x
    Issue #2467605 by DanChadwick: Conditional select options not updating...
danchadwick’s picture

Hmmm. d.o seems to have lost the 7.x-4.x commit message, but it was committed and pushed. 861a709

keesje’s picture

Your my hero for today ;-)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.