UI Builder Radio Button Value set

Kiran M
ServiceNow Employee
ServiceNow Employee

I need to show two radio buttons, A and B. Selecting A displays some editable components; if B is selected, a confirmation dialog appears asking whether to switch from A to B or stay with A (and vice versa). The dialog has Yes/No options—if No is chosen, the radio button should revert to the previous selection. I’m having trouble resetting the value correctly when users switch multiple times between A and B.

 

Please help! Thanks in Advance!

3 REPLIES 3

GlideFather
Tera Patron

Hi @Kiran M 

and the additional fields are evaluated in (Catalog) UI Policy or (Catalog) Client script?

 

For Policy Action you can set clear value as per here:

GlideFather_0-1755008118281.png

 

If onChange script, ensure that you have the clearing the options as well

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Kiran M
ServiceNow Employee
ServiceNow Employee

Thanks for checking but issue is not on UI Policy, I'm working on UI Builder Radio Button component.

Ankur Bawiskar
Tera Patron
Tera Patron

@Kiran M 

please share some screenshots and what you tried so far

where are you stuck?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader