Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

autofill some text

Avatar

Level 4

Hi,

I'm working on a form in which I want to take info typed in a particular field and have it copy and appear in a different field.  I've set up similar type things where I have a drop down box and someone selects a name and certain text appears, but I don't know how to make this happen when I don't know what the potential text is going to be.  Can you help me out please?  Thanks!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

The easiest way would be to name the objects the same in the hierarchy and then set their binding to 'global' in the Object > Binding palette.

This means that what ever the rawValue of one field is, it will be automatically replicated in the other - without script.

Good luck,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

The easiest way would be to name the objects the same in the hierarchy and then set their binding to 'global' in the Object > Binding palette.

This means that what ever the rawValue of one field is, it will be automatically replicated in the other - without script.

Good luck,

Niall

Avatar

Level 4

Thanks that worked perfectly and was far easier than I imagined it to be.