Scripting help please!

natalies3171885 04-07-2016

Hi All,

I have multiple repeatable subforms (with subforms within them, and so on), and I want to be able to set a field presence (and possibly a subform border) in the 'HazardControl' subform based on values entered being equal to values entered in the 'JobTask' subform. When filling in the form, the user can add multiple instances of 'JobTask', and multiple instances of 'Hazard' within 'JobTask', as well as multiple instances of 'HazardControl'.

I have pretty much no scripting experience except for what i've picked up from looking through the generated scripts in my various LiveCycle forms (ES4). I am hoping someone can write the script I need properly... Any help would be GREATLY appreciated.

What I want to do is basically this:

If

JobHazardAssessment.JHA.HazardControl.RecHazControl.Row1.Numbers.TaskNum

equals

JobHazardAssessment.JHA.JobTask.JobTaskTable.Row1.JobTaskNumber

and

JobHazardAssessment.JHA.HazardControl.RecHazControl.Row1.Numbers.HazNum

equals

JobHazardAssessment.JHA.JobTask.Hazard.HazDes.Row1.Number.HazNumber

and

JobHazardAssessment.JHA.JobTask.Hazard.RiskCalc.CritTask.presence = “visible”

then set

JobHazardAssessment.JHA.HazardControl.NewRiskCalc.CritTask

to visible

Screenshot for reference:

Capture.PNG

Accepted Solutions (0)

Answers (0)