web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Need to extract the st...
Power Automate
Unanswered

Need to extract the state of the radio button

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Guys, 

 

I need to extract the state of the radio button , using Ui automation . There is no specific selector for the radio button, but BOT need to understand whether those radio buttons are selected. Sharing the screenshot, please have a look a look.

 

adhilabdu_0-1657633372834.png

 

Thanks in advance!

 

 

I have the same question (0)
  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    @Anonymous Refer this: https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Set-radio-button-checked-by-using-Run-Javascript-function-on-web/td-p/827138

     

    Hope it helps!!

     

    Cheers,

    Ankesh

    --------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • VJR Profile Picture
    7,635 on at

    May I know why do you say there is no selector for the radio button? Is PAD not able to detect the UI element?

    If not able to get the UI element using normal ways, record the action of just clicking the button, go to the UI elements tab there you will see the element.

    Then use this element in the "Get details of element on web page" action.

    Get the Value and check what value does it return 0, -1, 1, true, false, etc and accordingly check the status.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Ankesh_49 , @VJR , 

     

    Thankyou for your replies, 

     

    The problem which I'm facing here it's need to extract the state of the radio button, where there is no specific id for the radio state mentioned in the selectors, and the image recognition with PAD is also not working with basic and advance algorithm, 

     

    I've tried with JavaScript, but which we don't have the correct id to specific position, it also failed.

     

    Thanks in advance

  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    @Anonymous Did you tried @VJR suggestion to record and check the UiElement.

     

    or else could you please share the details of your application

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Ankesh_49  I've tried of using recorder , only able to choose entire label not particular radio button. 

     

     

    trying to automate ServiceNow 

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Please share the HTML code of the radio button group.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Henrik_M Sharing the HTML elements, 

     

    <span class="input-group-radio" aria-checked="false"><input id="ni.VE4c07e36bdb6ebf04c6e4d18c689619c2_e8c0b58bdb9573004aafe16c0b9619bc" name="ni.VE4c07e36bdb6ebf04c6e4d18c689619c2" type="radio" class="cat_item_option radio disabled readonly" value="add_user_mail_distribution_list" readonly="readonly"><label for="ni.VE4c07e36bdb6ebf04c6e4d18c689619c2_e8c0b58bdb9573004aafe16c0b9619bc" class="radio-label">Add new user in the mail distribution list</label></span>

     

     

    Thanks in Advance

  • PAG Profile Picture
    154 on at

    Hello @Anonymous 

    When using JavaScript, the input tag should contain a name attribute, that should be enough, so you don't need to use a specific id.

    document.querySelector('input[name="action"]:checked').value

    See complete solution at: https://power.automate.gallery/DTA51C6fVGuP 

    But of course, if it's a custom made radio button, then we need a html example to help you.

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    You have to add a UI element with the following selector:

    span[class="input-group-radio"]:contains("Add new user in the mail distribution list")

     

    Then use it in a Get details of element on web page action:

    Henrik_M_0-1657719030414.png

     

    The %AttributeValue% variable will then be 'true' or 'false' depending on its state.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @PAG 

     

    it doesn't worked, not getting any result

     

    Thanks,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard