craft-freeform icon indicating copy to clipboard operation
craft-freeform copied to clipboard

Dropdown values are overwritten when Label changes

Open AramLoosman opened this issue 7 months ago • 1 comments

What happened?

When using dropdowns and filling in the Labels, the value fields get filled according to the label. So far so good. But when I change the Label afterwards, the value also gets updated. This is a problem because we've set up integrations and show/hide rules in the forms according to these values and those do not get notified when a value changes.

My suggestion would be that the value only gets written from the label if the value field is empty.

Errors and Stack Trace (if available)


How can we reproduce this?

  1. Create a dropdown field
  2. Enter a couple items e.g. Yes(yes) and No(no)
  3. Create a rule which depends on the dropdown value (yes)
  4. Change the dropdown item Yes(yes) to Maybe which results in the value to be also (maybe)
  5. The rule now says "Select an option"

Freeform Edition

Pro

Freeform Version

5.10.13

Craft Version

5.7.5

When did this issue start?

  • [ ] Unsure
  • [ ] Fresh install of Freeform
  • [ ] After upgrading from older Freeform version
  • [ ] After upgrading from older Craft version
  • [ ] After a change to hosting configuration

Previous Freeform Version

No response

AramLoosman avatar May 08 '25 07:05 AramLoosman

Thank you for your feedback on this @AramLoosman,

I agree that we should keep the option values the same when updating labels later on. I'll queue this for a developer to check into shortly. 🙂

kjmartens avatar May 14 '25 05:05 kjmartens