unable to set form radio buttons in ATF

tiasha123
Tera Contributor

Hi all,

 

I want to fill the form which appears upon clicking the UI action. The form has radio buttons, I am trying 'set component values" custom ui step in atf but it is not setting the form value. How do i do it ? I need to do it through ATF.

 

Please find the form image below:

tiasha123_0-1750847954508.png

 

 

Thanks in advance!

Tiasha

9 REPLIES 9

Samaksh Wani
Giga Sage
Giga Sage

Hello @tiasha123 

 

Sometimes "Set Component Values" doesn’t work well for radio buttons. Instead, try:

  • Use: Set Field Values

  • Target the field name as per the dictionary name of the radio button field

  • Enter the label value of the radio button option (not the internal value)

Example:

  • Radio field name: priority

  • Option label: High

Then in Set Field Values, set priority = High

If you find my solution helpful, Please mark it as Accepted and thumbs up on it.

 

Regards,

Samaksh Wani

Hi @Samaksh Wani ,

 

This form first needs to be retrieved using retrieve components custom ui step and after then we need to fill in the form, but its not setting the values still.

 

1. Make sure the below property is enabled, 

Ujjwal019_0-1751377877539.png

 

Now, try retrieving all the Custom UI Test Steps one by one and proceed with your Testing. If this doesn't work, then try creating an another TEST for your requirement and then make sure you are selecting the correct values from the Retrieve Components

 

Let me know if this helps.

Ankur Bawiskar
Tera Patron
Tera Patron

@tiasha123 

did you try to retrieve the components using Click Component Custom UI Step?

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