2 Replies Latest reply on Jan 9, 2012 10:07 AM by Ida Eve

    Save Form Presence on certified form

    Ida Eve Level 2

      I have an inspection form that populates a single text box from mulitple drop-down values.  I have no problems saving the presence of all the hidden pages, expect for the page that contains the script that populates the single text box.  This form has to be certified, so I have to preserve scipting changes manually.

       

      The script (partial) for the text box is in the calculated event- JavaScript  (This script works great!)

       

      var str = "";

      //--------Drop Down 1-----------

       

      if (form1.recordKeepingPage.RecordKeeping.rk_BusName.rawValue == "No" || form1.recordKeepingPage.RecordKeeping.rk_BusName.rawValue == "Partial name")

           {

           if (form1.recordKeepingPage.RecordKeeping.rk_BusName.rawValue == "No")

                {

                str = "Required Records - No business name listed" + "\n";

                }

          else

                {

                str = "Required Records - Partial business name listed" + "\n";

                }

           }

       

      The script from the Drop Down to display the hidden page when a specfic value is selected in the change event-JavaScript

       

      if (xfa.event.newText=="No")

           {

           NonCompliancePage.presence="visible";

           }

      if (xfa.event.newText=="Partial name")

           {

           NonCompliancePage.presence="visible";

           }

       

      This is the script I am using to save all other hidden pages that are displayed in the initialize event-JavaScript

       

      if (this.rawValue==1)

           (HiddenPage.presence="visible";)

      else

           (HiddenPage.presence="hidden";)

       

      The above script will not save the hidden page (displayed) that contains the 1st script that populates the text box from multiple drop down values.  Is there a special way to code it?