You can use a script to display the data that is entered into one field in another field. You can run this script on specific field-oriented events that trigger in response to user actions.
For example, an interactive form may prompt a user to enter the department name. This department name may be displayed on subsequent pages of the form (if it is a multipage interactive form). The field for the department name is bound to a data field, and this data field is where the department name is recorded. To display the department name on the other pages, the contents of the input field need to appear on other pages. The other instances do not need to be editable, and they may be part of another field (such as a floating field). In this case, you use a script to copy the department name to the other fields.
See also 

To use a script to show the data that is entered into one field in another field