Copy link to clipboard
Copied
I create an interactive pdf in which I have several tables. one field that I fill in with a text field is in every table.
so I want that after entering the text in this field in one table it was available in this field in each table - How to do it dynamically?
Copy link to clipboard
Copied
You either give the fields the same name or you use JavaScript to fill the other form fields from the source field.
Copy link to clipboard
Copied
thank you very much
I set the same name for field and it works.
but i want to use JavaScript - How can I do it using java script?
what example script might be in this case?
Copy link to clipboard
Copied
For the "on blur" action for the first field enter the following JavaScript:
var cOtherField = "Other Field Name";
var oField = this.getField(cOtherField);
if(oField == null) {
app.alert("Error accessing field " + cOtherField, 1, 0, "Field Access Error");
}
if(oField != null) {
oField.value = event.value;
}
Copy link to clipboard
Copied
ok,thank you very much
but where to paste this script? cOtherField is to be assigned a name in the name text field
you will describe briefly where exactly to set this script? or some tutorial you send?
best regards
Copy link to clipboard
Copied
yes, but this script only works if all text field - to which I want the text to be typed to be assigned the same name as text field first - in which I write the script, or how text field have the same name as assigned in var cOtherField.
and I want these text fields to be 5 and differ by name. how to change the script?
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more