Inspiring
February 14, 2024
Answered
Does a field on a spawned page get seen by javascript?
- February 14, 2024
- 1 reply
- 1268 views
I am currently working on a form with 7 checkboxes. If "Trust" is clicked then it spawns a new page. If the others are clicked then I want the spawned page to delete.
I have spawned a page with a text field called "Page text 2". I have added the following code to the other six checkbox buttons.
var v = this.getField("Check Box 1").value; if (v === "Partnership") { var f = this.getField("Page text 2").page; this.deletePages(f); }
Obviously changing the Value for the other 5 checkboxes.
It doesn't seem to be working.
I will be grateful for any help.
Steve