craft-freeform
craft-freeform copied to clipboard
[5.1.15] Issues when using fields with rules
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
Steps to reproduce
- Set up two separate forms.
- Include a radio button field in each form, offering two options to choose from.
- Add a field of your choice to both forms, ensuring they share the same handle.
- Establish a rule that controls whether the shared field is displayed or hidden based on the selected option in the radio button field.
- 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