Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Dynamically populating a text field on the Master Page

$
0
0

I'm trying to populate a text field on the Master Page of a form by having it populate as a user types data into a text field in a content area.  So far, I have it populating when the user puts the cursor into the Master Page text field and then leaves that field after typing data in the text field in the content area.  I want the text field in the Master Page to populate as the user types in the text field in the content area, so it looks like both fields are being filled simultaneously.

 

The script which now populates the text field in the Master Page is

this.rawValue = MNPD.Form130.Page1.CSIInfo.CPN.rawValue;

 

This script is in the Enter, Exit, Calculate and Validate events of the Master Page text field.

 

I suspect that I am not correctly referencing the Master Page text field when trying to put a script in the content area text field events.

 

From the Hierarchy, the Master Page text field is   MNPD > Master Pages > PageArea1 > CPN and the text field in the content area is

 

MNPD > Form130 > Page1 > CSIInfo > CPN

 

I have tried putting the following scripts in the exit event of MNPD>Form130>Page1>CSIInfo>CPN and they have all failed:

 

MNPD.#pageSet[0].PageArea1.CPN.rawValue = this.rawValue;

 

MNPD.pageSet[0].PageArea1.CPN.rawValue = this.rawValue;

MNPD.pageSet.PageArea1.CPN.rawValue = this.rawValue;

 

I even tried renaming Master Pages to MasterPages and replacing pageSet with MasterPages and that didn' t work.

 

How does one do this?

 

 

 

 

 


Viewing all articles
Browse latest Browse all 5571

Trending Articles