Inspiring
February 10, 2025
Answered
Setting up a form field array to check if a form field is visible.
- February 10, 2025
- 5 replies
- 1682 views
Hi there,
I need to set up a form field name array to check if the field names "8 base 2" to "8 base 8" are visible. If they are visible then I will need to show then next one to show along with the Name, Sig and Date boxes. Also when it shows "8 base 5" Page 2 needs to be spawned. I have asked this previously last week but when it came to spawning a new page it stopped working.
var visibleFields = ["8 base 2", "8 base 3", "8 base 4"];
for (var i in visibleFields) {
var f = this.getField(visibleFields);
if (f) f.display = display.visible {
this.spawnPageFromTemplate({
cTemplate: "Page 5",nPage: v+2,bOverlay: false,bRename: false}); this.getField("Date5").display = display.visible; this.getField("Sig5").display = display.visible; this.getField("Name5").display = display.visible;
}
}
Something along these lines.
As always any help would be greatly appreciated,
Steve
