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 / Override SubGrid label...
Power Pages
Unanswered

Override SubGrid label on portal

(0) ShareShare
ReportReport
Posted on by 88

Hi

 

I have a list control on the table entity form and would like to override it's label to show a different text on the portal.

Please let me know the process.

Thanks in advance.

Cris

Categories:
I have the same question (0)
  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    Hi @Cris2,

    If you have a separate form that is shown on the portal you can change the label directly in the model driven app. If you have only one form and need to change the label only on portal you can do it with javascript. Explore the page to find the id of the label element for the subgrid and then using js find that element by id and set the value.

  • Prakash4691 Profile Picture
    1,332 on at

    @Cris2 

     

    You can modify column attributes using list configuration->override column attributes for the list.

     

    FYI, please find reference link below,

    https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/entity-lists#list-attributes-and-relationships

     

    If it answers your question, kindly give kudo and accept it as solution.

     

     

    Regards,

    Prakash

  • Cris2 Profile Picture
    88 on at

    Thanks. I am aware of using a second form. But wanted to use the same single form. Could you please let me know:

    1. How to find the control id?

    2. Where should I insert the javascript?

    3. Sample javascript to do this.

     

    Thanks

  • Cris2 Profile Picture
    88 on at

    Thanks Prakash, I'm aware of changing the column names in metadata, and looking to override the SubGrid label.

     

    Thanks

  • Prakash4691 Profile Picture
    1,332 on at

    @Cris2 ,

     

    To modify subgrid list labels, you can do it from entity form metadata of subgrid.

     

    Refrence link below,

    https://youtu.be/8TgpYEaShzo

     

    Regards,

    Prakash

     

  • Verified answer
    OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    @Cris2 you need to open developer tools in your browser and use inspect element to highlight necessary label that you would like to change (see example below):

    OOlashyn_0-1631186988579.png

    Then you can use for property and write something like this to change the label:

    $(document).ready(function() {
     $("label[for='Subgrid_1']").text("New test label"); 
    });

    You can add this code into Custom Javascript field under Additional Settings tab in your basic form.

  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    You should be able to do that via Metadata @Cris2 

    if you can't get it working, please share a few snapshots with us so we can better understand your problem 

  • Cris2 Profile Picture
    88 on at

    Hi Oliver, 

    The metadata for SubGrids has no option to change the form list label. We can only change the column/attribute heading in the lookup dialog.

    Thanks

  • Cris2 Profile Picture
    88 on at

    Hi

     

    Thanks for explaining this so well. Much appreciated! It worked!

    Thanks again.

    Cris

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
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard