• Resolved ra2or

    (@ra2or)


    Is it possible to check/uncheck a specific choice of a radiobutton (shown as a toggle) based on the value of another field using the calculated field or Jquery?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    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|n).setVal(888);
    else getField(fieldname123|n).setVal(0);
    })()

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

    Best regards.

    Thread Starter ra2or

    (@ra2or)

    It works! Thanx!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.