2 Replies Latest reply on Apr 6, 2011 9:05 AM by Mallard27

    Convert Javascript: switch(xfa.event.newText) to Formcalc Syntax

    Mallard27 Level 1

      I was wondering if someone could provide me with the syntax for formcalc for the following javascript. This is used to hide or make visible 2 fields based on a value in a drop down list:

       

      switch(xfa.event.newText) {
          case 'A - Approved':
              form1.Page1.2nd_Title.presence = "visible";
              form1.Page1.2nd_Signature.presence = "visible";
              break;
         default:
              form1.Page1.2nd_Title.presence = "hidden";
              form1.Page1.2nd_Signature.presence = "hidden";
              break;
      }

       

      Thanks,

       

      Mallard27