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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Applying Css on Dynamics CRM Entity Form

(1) ShareShare
ReportReport
Posted on by 314

Hi All, How can we set Css properties on Dynamics 365 Entity Form. I have read some articles and created CSS and load it through Java script. but it has not shown any change in the design. Any body help me? Following is my CSS and Javascript code.

CSS Code

h2

{
background-color: black;
color:white;
font-size:30px;
}

JS Code to Load this CSS

function LoadCss()
{
debugger;
var path = ""/WebResources/nfs_designiframe.css"";
var head = window.parent.document.getElementsByTagName('head')[0];
var link = window.parent.document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = path;
link.media = 'all';
window.parent.document.head.appendChild(link);
}

Firstly i have taken a simple H2 tag as selector in Css just to check if it is working. It represents the headers of Tab like "General".

It is not working, I don't know but may be the path format is incorrect. Any one know please help me?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    changing the CSS of a form is not a supported customization.

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 Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans