Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

copy text from one page to another

Avatar

Former Community Member
----- F.PAGE1.agt_ssn::change - (JavaScript, client) -----------------------------------------------



F.PAGE3.agt_ssn_lic.rawValue = F.PAGE1.agt_ssn.rawValue;



What am I doing wrong?

Can you auto fill another text field with another without global binding?
4 Replies

Avatar

Former Community Member
The change event happens before the rawValue is committed. The new value that the field will be changed to is stored in xfa.event.newText. So what you want is likely this:



F.PAGE3.agt_ssn_lic.rawValue = xfa.event.newText;



Chris

Adobe Enterprise Developer Support

Avatar

Former Community Member
Thanks that worked great!!!(for the first line)

Now why wont it populate more than the one other text field?



F.Lic.Table1.Row1.agt_ssn_lic.rawValue = xfa.event.newText;

F.PAGE3.agt_ssn_1.rawValue = xfa.event.newText;

F.PAGE4.agt_ssn_2.rawValue = xfa.event.newText;

Avatar

Former Community Member
Here's a quick sample. You can see the script in the change event of the text field on the first page.



Chris

Adobe Enterprise Developer Support