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

Radio Button Group - "Deselect" and leave all buttons clear

Avatar

Level 1

Is it possible to have selected a radio button within a group and "deselect" it so all buttons in the group clear?  User could have "clicked" in error but cannot clear the button without selecting another button in the group.  I would like to let them clear the group.  Possible?

Thank You

0 Replies

Avatar

Level 10

Yes it is. For example, where 'favouriteFoodGroup' is an exclusion group, it can be reset using

xfa.host.resetData("form1.subform1.favouriteFoodGroup");

Steve

Avatar

Level 1

Appreciate your time.

Thank You,

Stacey Wyatt

Robert Livermore

Community Center

925 373-5706

swyatt@larpd.dst.ca.us

www.larpd.dst.ca.us <http://www.larpd.dst.ca.us/

Avatar

Level 2

Hi There, I'm having the same trouble, but when I use the code you've posted, it continues to reset the entire form, not just the radio exclusion group specified. My code is written on a button on the click event and reads as follows:

xfa.host.resetData("Form1.RequestForm.Approval.ApprovalOrDenial");

ApprovalOrDenial is the name given to the radio button exclusion group. What am I missing?

Avatar

Level 1

I am now having issued with Window 7 where before I did not. I don’t have an answer for you.

Sorry.

Stacey