Auto update textbox values from another field value not working
Hi All,
I'm sorry if I've not found an existing post that may resolve this issue. I've spent days researching and trying different variations but nothing seems to work. I'm new into using PDF and javascript so I'll try to be as clear and basic as I can. It's likely I'm not using "prepare forms" for it's intended use but I'm hoping there's a workaround.
I'm creating a fillable document and I need to have the details of one-page (Customer and Company Details) update the details of a few other pages within the whole document to avoid duplication and to save the time of the salesperson.
For example, on the first page we are completing "Enquiry - Company Name" (Textbox) and then on the 2nd page, the text box "Survey - Company Name" would automatically populate with the "Enquiry - Company Name" value and so on and so on through the document.
I've tried some of the following options: either through an "On Blur" Javascript option or a "Custom Keystroke Script" but nothing seems to work.
var n1 = this.getField("Enquiry - Company Name");
var n2 = this.getField("Survey - Company Name");
n2.value = n1.value;
this.getField("Survey - Company Name").value = this.getField("Enquiry - Company Name").value;
event.value = this.getField("Enquiry Pad – Business Name).value;
Any help would be greatly appreciated.
Thanks
Gary
