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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Remove aria-readonly p...
Power Pages
Suggested Answer

Remove aria-readonly property from a subgrid table in a Power Pages form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
I used the MSFT 'Accessibility Insights for Web' browser extension to check my power Pages site for accessibility issues.
 
It flagged multiple instances of 'ARIA attribute is not allowed: '. Apparently having the aria-readonly attribute in a table element is an accessibility issue. Power Pages adds this property by default.
 
For standard tables I was able to resolve the issue by adding the following Javascript to the power pages list:
 
$(document).ready(function (){
    $(".entitylist.entity-grid").on("loaded", function () {
        $(this).children(".view-grid").find("[aria-readonly]").each(function (){
            $(this).removeAttr("aria-readonly");
        });
    });
});
However, I have a form that includes a subgrid. This approach doesn't work for the form subgrid.
 
Any suggestions?
 
Categories:
I have the same question (0)
  • Lucas001 Profile Picture
    2,434 Super User 2025 Season 2 on at
    Hi @NaivePowerApper,
     
    could you post the HTML Structure here?
  • Suggested answer
    NaivePowerApper Profile Picture
    Microsoft Employee on at
    I was eventually able to resolve the issue through multiple rounds of copilot consultation.
     
    Added this javascript to the page that contains the form that contains the subgrid:
     
    document.addEventListener("DOMContentLoaded", function () {
        // Wait a bit to ensure the subgrid is rendered
        setTimeout(function () {
            // Select the subgrid by ID (adjust selector if needed)
            const subgrid = document.querySelector("#Ticket_Partner_Attachment_Subgrid");
     
            if (subgrid) {
                // Remove aria-readonly from all elements within the subgrid
                subgrid.querySelectorAll("[aria-readonly]").forEach(function (el) {
                    el.removeAttribute("aria-readonly");
                }); 
             
                console.log("aria-readonly removed");
            } else {
                console.log("Subgrid not found.");
            }
        }, 2000); // Adjust delay as needed
    });

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 78 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard