Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

TextField1 Value duplicated in TextField2.

Avatar

Level 3
Hi,



My form has two TextFields, (TextField1 and TextField2)



TextField1 receives values from a few CheckBoxes.



As TextField1 populates the text, TextField2 should mimic TextField1.



***Very Important***

TextField1 is also editable by the user.



If additional text is added or deleted from TextField1, TextField2 should follow any changes always identical.



If anyone has any information I'd appreciate it.

Thank You,

Arnold Love
4 Replies

Avatar

Level 10
On the calculate event of TextField1 set this command:



TextField2.rawValue = TextField1.rawValue;

Avatar

Level 3
Thank You Paul, I'll Try it now,

Avatar

Level 3
Hi Paul,



I made a sample.



TextField1's data can duplicate the value into TextField2.



But when I manually type data into TextField1, TextField2 will not copy the data.



Anyway I can fix that?



Arnold Love

Avatar

Not applicable
Put it additionally in the exitfield formcalc of TextField1

TextField2.rawValue = TextField1.rawValue;

Tried it, it works ;D



Lisa