cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cwwhite1
Helper I
Helper I

Model App - Form Customization

Hi - I am wondering if there's any way to format section headers on a model driven app form? I am looking to make the header of each section within my form a different color. Any help would be appreciated! Thanks!!

1 ACCEPTED SOLUTION

Accepted Solutions
dpoggemann
Super User
Super User

Hi @cwwhite1 ,

 

You would need to utilize JavaScript to accomplish this type of customization.  The FormContext (https://carldesouza.com/using-formcontext-in-dynamics-365/) should give you access to this at the Sections level.  https://docs.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/formcont... 

 

The following page also shows example of hiding or showing a section, not specifically what you are asking but think it will get you along the way.

https://ravindarreddykasarla.com/2019/08/13/the-most-used-javascript-methods-for-dynamics-crm-v9-x/ 

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

View solution in original post

3 REPLIES 3
dpoggemann
Super User
Super User

Hi @cwwhite1 ,

 

You would need to utilize JavaScript to accomplish this type of customization.  The FormContext (https://carldesouza.com/using-formcontext-in-dynamics-365/) should give you access to this at the Sections level.  https://docs.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/formcont... 

 

The following page also shows example of hiding or showing a section, not specifically what you are asking but think it will get you along the way.

https://ravindarreddykasarla.com/2019/08/13/the-most-used-javascript-methods-for-dynamics-crm-v9-x/ 

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew
Pavan_Mani_Deep
Helper I
Helper I

Hi @cwwhite1 ,

 

Could you please check the following link for changing the color of your Section...

http://sumedha8.blogspot.com/2013/07/change-colour-of-fonts-sections-and-tabs.html

 

Please let us know if you were able to solve the issue with this....hope this helps...

 

Thank you.

 

PMDY

 

cwwhite1
Helper I
Helper I

@Pavan_Mani_Deep @dpoggemann - thanks so much for the help! Was able to use javascript on load to change the headers!!

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (4,632)