Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.1.15] Issues when using fields with rules #1241

Open
yawuar opened this issue Apr 26, 2024 · 2 comments
Open

[5.1.15] Issues when using fields with rules #1241

yawuar opened this issue Apr 26, 2024 · 2 comments
Assignees
Labels
freeform5 Affects Freeform 5.x issue Something isn't working correctly

Comments

@yawuar
Copy link

yawuar commented Apr 26, 2024

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?

Screen.Recording.2024-04-26.at.10.42.57.mov
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 yawuar added the issue Something isn't working correctly label Apr 26, 2024
@yawuar yawuar changed the title Issues when using fields with rules [5.1.15] Issues when using fields with rules Apr 26, 2024
@kjmartens
Copy link
Contributor

Hi @yawuar,

I wonder if this would be resolved by using the fieldIdPrefix: 'myform-' parameter on each form. Can you try that? 🙂

@kjmartens kjmartens self-assigned this Apr 27, 2024
@kjmartens kjmartens added the freeform5 Affects Freeform 5.x label Apr 27, 2024
@yawuar
Copy link
Author

yawuar commented Apr 29, 2024

@kjmartens

I tried adding fieldIdPrefix: 'myform-' to all the forms, but it didn't do the trick. :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
freeform5 Affects Freeform 5.x issue Something isn't working correctly
Development

No branches or pull requests

2 participants