Another question if this is available within your gravitywiz set:
I want to make some radio field chouces conditional logic, not the whole field itself.
If field X is not Z then choice 3 within field-id 3 should not be shown/visible.
I’m aware that I can make multiple radiofields with all the different combinations I need and then show, don’t show, all with conditional logic, but with 4 choices this make the form way to complicated.
Hello Keesjan. I do not know of a solution to disable individual options within a field, based on conditional logic. In the past, I have done it the messy way, with different individual radio button fields in the form, and showing each one conditionally based on the earlier choice.
You can use one choice per checkbox field, hide titles except first one and use CSS to shrink margin-bottom between fields. Use the Gravity Perk that limits choice selection across multiple fields this way you can use them as radio buttons if you want by choosing only one selection across multiple fields. Then you can apply conditional logic on each field and show or hide as you wish.
Fortunately, Gravity puts very specific IDs on each radio choice so you can easily show or hide them with script. For example: id=“choice_4_1_0” is form 4, field 1, choice 0. jQuery("#choice_4_1_0").hide(); will hide the radio button and jQuery("#label_4_1_0").hide(); will hide the label.