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

    (@codepeople)

    Hello @psiim18

    If you configure some fields depending on the choices in the radio buttons field, those fields will be visible only if the choice is ticked.
    If you want to show some fields only if there is no choice ticked in the radio buttons fields, you must use a calculated field as an auxiliary.

    I’ll try to describe the process with a hypothetical example. Assuming you have the radio buttons field fieldname1, and you want to activate the fieldname2 and fieldname3 fields only if there is no choice ticked in the radio buttons field.

    Insert a calculated field in the form you will use as an auxiliary (You can hide it by ticking a checkbox in its settings), and enter the following equation:

    (function(){
      if(NOT(fieldname1)){]
        ACTIVATEFIELD(fieldname2|n);
        ACTIVATEFIELD(fieldname3|n);
      } else {
        IGNOREFIELD(fieldname2|n);
        IGNOREFIELD(fieldname3|n);
      }
    })()

    Note I used the “|n” modifier with the fieldname2 and fieldname3. The plugin replaces the fields’ names with their values before evaluating the equations. The “|n” modifier tells the plugin you are referring to the field’s name, not its value.

    Best regards.

    Thread Starter psiim18

    (@psiim18)

    Hello,

    I don’t understand, I have fields selected, what to display, but it also shows other fields.

    https://prnt.sc/jV6zIlqrfqqm

    Plugin Author codepeople

    (@codepeople)

    Hello @psiim18

    Fields that you do not set as dependent are always visible because they are conditioned by other fields.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Radio button field’ is closed to new replies.