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 / Select dynamic radio b...
Power Automate
Answered

Select dynamic radio buttons

(0) ShareShare
ReportReport
Posted on by 5

Hi,

I have an issue with PAD to select Radio Buttons with dynamic names, see below the HTML code.

Example the field "document_viewDetail_docId" is dynamic, so on each refresh there's a new docId number.

The only field that is static, is the "doc_filename" field, however this field is enclosed in a different <TD> tag.

Is there a way that I can refer to the "doc_filename" when selecting the radio button ? 

 

<table class="resultTable">
<thead>
<tr>
<th class="ListTitle" style=""></th><th class="ListTitle" style="">Name Document</th></tr></thead>
<tbody>
<tr class="ListLine1">
<td>
<input type="radio" name="docId" id="document_viewDetail_docId1234" checked="checked" value="1234"><label for="document_viewDetail_docId1234">1234</label>

</td>
<td>
<div class="doc_filename">File1.pdf</div>
</td>
</tr><tr class="ListLine2">
<td>
<input type="radio" name="docId" id="document_viewDetail_docId4567" value="4567"><label for="document_viewDetail_docId4567">4567</label>

</td>
<td>
<div class="doc_filename">File2.pdf</div>
</td>

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Do you want to select a specific radio button in the table, or select all of them? If it's a specific one, what do you want to base the selection on?

  • Thorgal Profile Picture
    5 on at

    Hi, I want to select the radio buttons one by one.

    As in fact there's a piece of code missing, by selecting the radio button you can download the related pdf file (there's a download button at the end of the page).

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Try capturing the radio button as an element. Then modify the selector. Remove the Id parameter and instead enable the type parameter, so it targets an element with type "radio".

    Also enable some parent elements and provide an ordinal value (index) to the <tr> element. This way you can build a loop with a %LoopIndex% and pass that as a variable to the selector, so you can process it one row at a time.

     

    See here on how to modify selectors and use variables in selectors: https://learn.microsoft.com/en-us/power-automate/desktop-flows/build-custom-selectors

    Also this tutorial: https://youtu.be/2PcyBa22Jj8?si=EssW3IlT-8B7eqbc

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

    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 809

#3
Haque Profile Picture

Haque 645

Last 30 days Overall leaderboard