1
0
-1

I have a situation where I need to reset the selection of a radio button group, which is mandatory.  I have tried setting the raw value of the individual radio button to false, but the group is retaining the selection info and not firing the mandatory rule.  For example, buttons Yes and No in a mandatory group.  User selects Yes, then several steps later, performs an action that requires the user to come back to this question, with the selection cleared.  They should not be able to proceed without selecting Yes or No.  Is there a direct way to "clear" the groups selected info?

    CommentAdd your comment...

    3 answers

    1.  
      4
      3
      2

      Hey Joseph, you can clear the radio button selection by setting the value of the radio button group to blank, e.g.:

      sfc.setRawValue({rbBind}, "");

      The radio button group component is an independent component in the structure. Using the setRawValue function you need to set the type of the rbBind parameter to Node.

        CommentAdd your comment...
      1.  
        2
        1
        0

        I have achieved this before by setting the raw value of the radio button group to an empty string

          CommentAdd your comment...
        1.  
          1
          0
          -1

          Thank you.  I had hoped it might be this simple!  was concerned that, in addtition to data-value for the group retaining the selected value, it also was retaining the UID for the button.  However, this solution seems to be working nicely.

            CommentAdd your comment...