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.

Populate field input into other instances

Avatar

Level 2
I am revising a government form (an elephant designed by committee) that requires the users to add their name on every single page--sometimes more than once--and the thing is 21 pages long(!). How can I take the input from the first instance and use it to populate all other instances in the mega-form.



Thanks.



Buck
3 Replies

Avatar

Former Community Member
Hi,

Let's say you have two text fileds, Field1 and Field2.

Select Field1 and choose javascript. On the onChange script, add for instance Field2.rawValue = Field1.rawValue. See if this works.

Avatar

Level 5
Use the same FieldName on each occurance of the field.

Set the default Binding (on the Object/Binding tab) to "Global".

This will tie all the fields together to act as one.



Good Luck!

Avatar

Level 2
Mark's approach seemed more straightforward to a struggling novice--me--so I tried it and it works great. Elegant, simple, logical. Thanks very much.