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
SOLVED

Unable to automatically populate fields that have Global Data Binding

Avatar

Level 5

Hello,

I have a long LCD form with a button at the top that I use to fill the form with test data.  So that button just has a bunch of "rawValue = ____" statements.  But a few of the fields in the form use global data binding, and the button just won't fill those fields.  So I still have to fill those fields manually every time I want to test.  Can anyone tell me if there's a way to get around this?  Thanks for any help.

Kam.

1 Accepted Solution

Avatar

Correct answer by
Level 5

Just figured out the answer myself.  The issue was one of the questions being filled in was a Yes/No radio button that had "xfa.host.resetData" command in it.  So every time that radio button is clicked, the resetData function would clear out the fields in that section, and then of course everywhere else because of the global data binding.  I removed the resetData function, and problem solved.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 5

Just figured out the answer myself.  The issue was one of the questions being filled in was a Yes/No radio button that had "xfa.host.resetData" command in it.  So every time that radio button is clicked, the resetData function would clear out the fields in that section, and then of course everywhere else because of the global data binding.  I removed the resetData function, and problem solved.