Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Exclusion Groups: selecting buttons with JavaScript

Avatar

Former Community Member

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

Avatar

Correct answer by
Level 10
2 Replies

Avatar

Correct answer by
Level 10

Use this syntax: