Auto populated areas do not update/Populate after a correction to the field

Example:

We have a field name used in the document:

Employee Name_1 on page 1

Name_2 used on page 2

Name_3 used on page 8

Employee Name_4 page 10

If the script is on the Name_1 first employee, and it works fine. Type your name and fill in the other three fields as if by magic.

Save the PDF file, go get a coke or pot break.

Open the saved PDF file and you see a typo in the employee field Name_1, in order to correct you. Ah, now, it is not automatically complete the rest of the employee_name fields:

Here is my script:

the value of power reactive

var a = this.getField ("Name_1 employees");

var two = this.getField ("Name_2 employees");

var 3 = this.getField ("Name_3 employees");

var 4 = this.getField ("Name_4 employees");

This function which checks if the destination field is empty and if so popluates it.

function checkAndPopulate (orig, populate) {}

if(Populate.value==''||) Populate.Value == null) {Populate.Value = orig. Value}

}

Copy the value from one to two, three and four

checkAndPopulate (one, two);

checkAndPopulate (one, three);

checkAndPopulate (one, oven);

Don't know where my mistake my being?

Any help?

Thank you

jr7138

I recommend not not using the event about the blur and put the script in the field Name_1 validate event. If you want to update the values for the other fields when it is updated, whether empty or not, the script can be simplified as follows:

Validate a custom for Name_1 field script

getField("Name_2").value = event.value;

getField("Name_3").value = event.value;

getField("Name_4").value = event.value;

Tags: Acrobat

Similar Questions

Maybe you are looking for

  • Gmail does not recognize my password in Thunderbird. Through gmail, it works.

    When you try to retrieve messages in Thunderbird to my gmail account password is not recognized. There had been no problems until Friday. Using Thunderbird 31.3.0. on the Windows 7 computer. I can connect to gmail via the web. Error message says to c

  • -Using SMALL NUMBERS and whether to exclude 0

    I'm trying to calculate the average of the 6 lowest numbers in a table.  I do not wish to register 0.  I tried a SMALL formula that works, but I can't rule out the zeros.  I tried IF and COUNT, but can not get to work.  Any advice welcome.

  • Reference open vi

    Hello can someone tell me why LabVIEW does not execute the function "open reference vi" when I interact with for example the context menu? I have attached a picture for more understanding. Kind regards Thomas

  • Error WindowsUpdate_800B0100

    I get error WindowsUpdate_800B0100.  Windows 7 x 64.  3 updates are not installed: KB2079403, KB982665 and KB982779 I ran the System Update Readiness Tool for Windows 7 for x 64-based systems (KB947821) [November 2010], but nothing has changed. Pls H

  • Why the search option opens when I click in a folder on my desktop

    I used to be able to simply click on a folder and it would open on my desk and I could see what is located in the folder.  Now when I click on a folder it sends me to research.  Help please