Expand my Community achievements bar.

Supress a page based on radio button

Avatar

Level 3

I have a radio button which brings up certain subforms depending on the

item chosen.  However for one of the three choices this also fills in a special handling form on the second page.  This I easily accomplished using the global setting for certain fields.  My issue is, I would like to set it up so that if choice anything other than choice 1 (value =1) is chosen, page 2 is surpressed and won't print.  Anyone know the code I would need to add to do this.  Here is the current code I'm using:

F.P1.ReturnCheck.ReturnCk::mouseUp - (FormCalc, client)

if

($.rawValue == 1) then

F.P1.CheckNotation.presence

= "hidden"

F.P1.SpecialHandlingSlip.presence

= "visible"

F.P1.SepChecksForm.presence

= "hidden"

else

F.P1.CheckNotation.presence

= "visible"

endif

F.P1.ReturnCheck.MailCk::mouseUp - (FormCalc, client)

if

($.rawValue == 2) then

F.P1.CheckNotation.presence

= "visible"

F.P1.SpecialHandlingSlip.presence

= "hidden"

F.P1.SepChecksForm.presence

= "hidden"

else

F.P1.CheckNotation.presence

= "hidden"

endif

F.P1.ReturnCheck.ManualCks::mouseUp - (FormCalc, client)

if

($.rawValue == 3) then

F.P1.CheckNotation.presence

= "hidden"

F.P1.SpecialHandlingSlip.presence

= "hidden"

F.P1.SepChecksForm.presence

= "visible"

else

F.P1.CheckNotation.presence

= "visible"

endif

0 Replies