0 Replies Latest reply on Sep 20, 2012 11:47 PM by tlrsekar

    Form Script working on preview but not working from Process

    tlrsekar Level 1

      Hi All

       

      Form Script working on preview but not working while form called from Process

      what could me the issue, Am i missing something...Kindly help me understanding the issue

       

      //Below given is the script

      tma_body.#variables[0].assignment - (JavaScript, both)

       

       

      var question1=xfa.record.medicaldetails.healthquestions.nodes.item(0).nodes.item(0).value;

      var answer1=xfa.record.medicaldetails.healthquestions.nodes.item(0).nodes.item(1).value;

      var memberLength=4;

       

      for(var i = 0; i <= memberLength; i++)

      {

       

              question1=xfa.record.medicaldetails.healthquestions.nodes.item(i).nodes.item(0).value;

              answer1=xfa.record.medicaldetails.healthquestions.nodes.item(i).nodes.item(1).value;

       

              if( question1==1)

              {

                      P4.HealthLifestyleSubForm.MedicalDetailsTable.Row1.healthquestion1details.rawValue=answer 1;

              }

       

              if( question1==2)

              {

                      P4.HealthLifestyleSubForm.MedicalDetailsTable.Row2.healthquestion2details.rawValue=answer 1;

              }

       

      }

      ////////End of script