Expand my Community achievements bar.

Form Script working on preview but not working from Process

Avatar

Level 2

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=answer1;

        }

        if( question1==2)

        {

                P4.HealthLifestyleSubForm.MedicalDetailsTable.Row2.healthquestion2details.rawValue=answer1;

        }

}

////////End of script

0 Replies