5 Replies Latest reply on Nov 17, 2017 8:51 AM by Thom Parker

    How do I Show and Hide fields based on Yes or No radio buttons?

    DC-jr7138 Level 1

      Trying to create a form, where if they check "Yes" or unchecking of "Yes" would also erase/hide the "A_Comments" box.

       

      My issue is; if I uncheck "yes" the A_Comments field remains visible. Checking "No" does hide and blanks out any content.

       

      Yes_No.jpg

       

      I have the following code on the "Yes":

      this.getField("A_Comments").display=display.visible;

       

      and this on the "No":

      this.getField("A_Comments").display=display.hidden

       

      "A_Comments" field has the following text Field Properties:

      Properties/General/Form Field: Hidden

       

       

       

      Any help would be appreciated.

       

      Regards,