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

[5.1.15] Issues when using fields with rules

Open yawuar opened this issue 9 months ago • 2 comments

Describe the bug or issue you're experiencing Hey there,

There are two forms, each with a radio field that displays or hides specific fields based on the selected value. The problem arises when I change the 'Adresgegevens' field in the second form to 'Ik woon niet in België'; it also changes the fields in the first form. It seems like the scope isn't properly defined. When I adjust the field handle, to a unique value, the form functions as intended. I'm wondering if this was intentional or if it's an error on your end?

https://github.com/solspace/craft-freeform/assets/9060850/b88b3cb5-05c2-482b-b353-926b86196969

Screenshot 2024-04-26 at 10 52 29

Steps to reproduce

  1. Set up two separate forms.
  2. Include a radio button field in each form, offering two options to choose from.
  3. Add a field of your choice to both forms, ensuring they share the same handle.
  4. Establish a rule that controls whether the shared field is displayed or hidden based on the selected option in the radio button field.
  5. Verify whether the fields in both forms have been modified.

Expected behavior The fields should change based on the selected value within their respective forms, not in others.

Craft & Plugin Info (please complete the following information):

  • Craft Version: 4.8.10
  • Freeform Version: 5.1.15
  • Freeform Edition: Pro
  • Fresh Install or Upgrade: Upgrade

yawuar avatar Apr 26 '24 09:04 yawuar