CFF: Mutual exclusion between multiple Radio Button fields (icons)
-
Hello,
I am working with the Calculated Fields Form plugin on a WooCommerce site.
I have a specific setup: I am using several different Radio Button fields, where each choice is represented by an icon. Because these icons are distributed across multiple CFF fields, the default behavior allows a user to select one icon in every field.
My Goal: I want these separate Radio Button fields to act as one single group. If a user selects an icon in one field, the selection in all other related Radio Button fields must be cleared immediately.
Important: My website is currently in maintenance mode, so I cannot provide a public URL.
Could you please provide the correct jQuery snippet or logic to achieve this mutual exclusion? Also, please let me know if I should place the code in the “Custom JavaScript” area of the Form Settings or within a Calculated Field.
I want to ensure the solution is compatible with the CFF internal events (like
.change()or.click()) so that the form updates correctly.Thank you for your support!
Sven
You must be logged in to reply to this topic.