Avatar

Level 3

Hello,


I am trying to copy one text field, EmployeeName, to another, Contacts, for an incident report form I created in LiveCycle.  I am still new with Javascript, and have found this code which I thought would work:

getField("EmployeeName").value == getField("Contacts").valueAsString;

The problem I am facing is that I cannot get it to work.  What I would like to have whatever is typed into the EmployeeName field to also be put into the Contacts field.  I cannot use a global binding as the Contacts will be different than the EmployeeName. 


Any suggestions on what to do?

Thank you,


Justin