1
0
-1

I'm having trouble writing a visibility rule which is based on a Graphic Radio Button dependency.

 

Whay should my visibility rule script look like if I just wanted to display the section if a particular Graphical Radio Button was selected?

 

I assumed that I could just have a single line of script:

    data.graphicalRadioButton

... and assumed that this would return true if the button was selected, but this didn't seem to work. 

 

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      There are actually TWO ways to do this. One being Sacha's answer.

      The other way is to compare the actual graphic radio buttons themselves.

      They will either have a true (selected) or false (not selected) boolean value.

      You can right click the buttons in the script editor like this:

      Which will generate code (in this case for the yes button):

        CommentAdd your comment...
      1.  
        2
        1
        0

        Seems like the only way is to compare the button group with a string that you have to manually set as a button value.

        Step 1) Give all of your graphical radio buttons values

        Step 2) Write your visibility script like so:

        data.GraphicalRadioButtonGroup === "value"
        1. Sacha Trube

          You can give your radio button a value by setting the "Reference ID" in the data tab.

        CommentAdd your comment...