Hello... I have a two page PDF form, on he second page I have a checkbox with simple javascript that will fill/delete the content of address field when checked. if (event.target.value!="No") this.getField("e_lieux").value=this.getField("lieux").value; if (event.target.value!="Yes") this.getField("e_lieux").value=""; if (event.target.value!="No") this.getField("e_ville").value=this.getField("ville").value; if (event.target.value!="Yes") this.getField("e_ville").value=""; This works fine but the issues I have is that I have a third page hidden template (a copy of the second pages) that I can add to my form. When doing so, it does not works since the fields "lieux" and "ville" get renamed to something like so "P2.nameoftemplate.lieux" and "P2.nameoftemplate.ville". Is there a way around this? A way to write the name of the field with whatever might come before, BUT stay of the current pages only, since we can have a fourth, or fifth or more added copy of the template. Thanks!
... View more