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 Pages / How to iterate all con...
Power Pages
Answered

How to iterate all controls in a specific data-name (tab) in powerapps portal

(0) ShareShare
ReportReport
Posted on by 53

Is there a way to iterate all control fields of a tab (<div data-name="tab_5" class="tab clearfix tab-pane fade active in"> and disable them?

 

Thanks,

Harry

Categories:
  • Verified answer
    harry_c2020 Profile Picture
    53 on at

    I managed to resolve it by iterating it using jquery

     

    $("div[data-name='tab_5'").find('.control input:text').each(function(i){
        $(this).prop("readonly", true);
    });
  • justinburch Profile Picture
    Microsoft Employee on at

    Hi @harry_c2020,

     

    You could try the following:

    $("[data-name='tab_5']").find("div.control").each(function () {
     $(this).children().enable(false);
    });

     

    You could break it down to be more specific for inputs, selects and textareas (also radio buttons, etc. as needed):

    $("[data-name='tab_5']").find("input, select, textarea").enable(false);

     

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

Leaderboard > Power Pages

#1
M Bilal Khan Profile Picture

M Bilal Khan 134

#2
Mohsin Ali Profile Picture

Mohsin Ali 36

#3
11manish Profile Picture

11manish 14 Super User 2026 Season 2

Last 30 days Overall leaderboard