Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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

Former Community Member
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

Former Community Member
Put it additionally in the exitfield formcalc of TextField1

TextField2.rawValue = TextField1.rawValue;

Tried it, it works ;D



Lisa