1
0
-1

Hi,

I have a Radio Button Group with a simple Yes, No set. I want the form to progress if they select Yes, and fail validation if they select No. Does this need to be done via scripting? I have added a rule to the No button to simply return false if selected, but that doesn't work as intended.

I have read that any scripting should go on the Group rather than the individual buttons. Just unsure what and where.

Cheers,
Dan.

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Hi Dan,

      Putting a rule on the 'No' button works for me, where the rule is buttonGroup not equals No (just using the rule editor). Alternatively I would use a Business Rule Error widget and use some script to do this.

      1. Dan Cormick

        Thanks Patrick. I will give that a shot.

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

      Hi Dan,

      Aside from Patrick said, other way is to add Validation rule in the button group and set that, it  is valid if the selected option of the button group is Yes (smile)

      1. Patrick McPhan

        I can't seem to set validation on radio button groups, only calculation or mandatory

      2. Lady Sharmane Udtuhan

        Ohh, sorry I didn't notice your question as for Composer. I thought it is for Maestro, because in Maestro we can add validation rule for Radio group (smile) . 

      CommentAdd your comment...