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

SOLVED

Exclusion Groups: selecting buttons with JavaScript

Marcos_J_Pinto
Level 5
Level 5

Hello!

How do I manipulate an Exclusion Group selection using JavaScript?

I created this four option Exclusion Group called REASON and used this line of code to select the first option:

     xfa.resolveNode("#subform.REASON.#field").rawValue = 1;

And it works just fine. So I took for granted this line sets field 1 as the selected button. Or so I thought.

Then I tried this:

     xfa.resolveNode("#subform.REASON.#field").rawValue = 2;

Hoping this would select the SECOND button in the group. Well, it doesn't work, no button is selected.

What am I missing??

Thank you for any hints!

Marcos

1 Accepted Solution
radzmar
Correct answer by
Level 10
Level 10
2 Replies
radzmar
Correct answer by
Level 10
Level 10

Use this syntax:

Marcos_J_Pinto
Level 5
Level 5

Great! It works!

Thank you Radsmar!

BR,

Marcos