You can set 10 conditions on the HTML block like in the following screenshot. Therefore, if the Yes option of any of those radio fields is selected, the HTML block will be displayed on the frontend.
I’m trying to avoid having to specify 10 conditions.
I want to specify one condition and have Gravity Forms parse all the fields in a Section (as if it was an array), then if any fields in the Section match the condition, show the HTML block.
That way, it saves time and also allows me to add fields without having to update the condition logic.
No worries, Jon. That’s possible using jQuery code. However, you will need to add a custom CSS class (cs_check_opt) to the Radio field settings, as shown in the following screenshot. This way, we can trigger our function to monitor the changes and control the display of the HTML block.
Make sure to add the CSS class to the HTML block and add the jQuery code in Divi > Theme Options > Integration > Body. There is no need to use third-party plugins when you have Divi. However, the code will need to be wrapped in the <script> tags. Please try the following code.
It seems that the code is not functioning correctly for some reason. Please export the form and send me the file so I can investigate further to resolve the issue. Thank you.
It looks like the issue you might be having is due to a conflict with a third-party plugin. I have tested it on my end with and without signature add-ons, and both are working fine.
Now, go to Dashboard → Divi → Support Center and enable Safe Mode. If this works, disable Safe Mode and start deactivating your active plugins one by one to identify the culprit.
Also, ensure that all plugins, themes, and the WordPress core are updated to the latest version. You can test the form on my sandbox here: Jon – Nutrition | Gravity Forms Sandbox.