Check/uncheck radiobutton based on value

[ad_1]

Hello @ra2or

Thank you very much for using our plugin. I’ll try to describe the process with a hypothetical example.

Assuming the radio buttons field is the fieldname123, and it has a choice with value 888, and you want to tick/untick it based on another field, for example, the value of the fieldname2, as follows:

If the fieldname2 value is greater than 100 tick the choice, and untick it otherwise.

To implement this behavior you can use a calculated field as an auxiliary (you can hide it by ticking a checkbox in its settings) and enter the equation:


(function()
if(100 < fieldname2) getField(fieldname123)()

Note I used the |n modifier with the fieldname123 field to refer directly to its name instead of its value.

Best regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer