CS Forms fields conditional logic

Hi,

I wonder how to set conditions for CS Form facets if they are dependent on each other?

Let’s say we have one Checkbox List which uses taxonomy items for sport disciplines. We also have other Checkbox Lists that contain items related to the ages for each respective sports discipline independently. And we want to show last only if the respective discipline is selected by the user in the first list. Is it possible?

Hey John,

Thanks for posting in! Kindly provide the specific sports discipline and the Age in a table format so that we will have an idea or at least find a way to make it happen. You may also need a mock layout along with the page or layout where you have added the CS Form.

Best Regards.

Hey @ruenel,

Here is the screenshot showing conditional relationships.

Third Checkbox List is the source for custom logic conditions. The following three Checkbox Lists are age categories for three disciplines listed in the Checkbox List above which need to be hidden until any of the disciplines are checked.

Here is my custom JSON with taxomomy labels for better understanding:

{
    "post_type"	 		 : "events",
    "event-season"		 : {{ url.param({"key":"event-season"}) | json_encode }},
	"event-month"		 : {{ url.param({"key":"event-month"}) | json_encode }},
	"event-discipline"   : {{ url.param({"key":"event-discipline"}) | json_encode }},
	"event-ages-sport"   : {{ url.param({"key":"event-ages-sport"}) | json_encode }},
	"event-ages-fight"   : {{ url.param({"key":"event-ages-fight"}) | json_encode }},
	"event-ages-beach"   : {{ url.param({"key":"event-ages-beach"}) | json_encode }},
	"event-level"		 : {{ url.param({"key":"event-level"}) | json_encode }},
	"event-country"		 : {{ url.param({"key":"event-country"}) | json_encode }},
	"event-ru"			 : {{ url.param({"key":"event-ru"}) | json_encode }},
	"s" 				 : "{{ url.param({"key":"search"}) }}"
}