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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Best way to inject CSS code to a form

(0) ShareShare
ReportReport
Posted on by

Hi Guys,

What's the best way to inject css code to a form?

Since we can't directly inject .css web resource file to form, so I tried inserting a html web resource with the css file in the <link> element in the <head> section, but it seems that the css code can only control the style of that injected html code, not the whole form.

I'd like the power to control the style of whole forms using css. Do you know any quick solution to this? Or do we have to use some third party tool?

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    There is no supported way of doing this, CRM does not allow you to change CSS of entity form, you can use unsupported way in case of on premise and modify the CRM pages, but in case of online that is also not possible

  • Suggested answer
    Community Member Profile Picture
    on at

    The css under a html web resource will only work under that html because each html is a document. You can use unsupported JavaScript to apply css as you are using CRM online.

  • Suggested answer
    Neil Parkhurst Profile Picture
    10,727 User Group Leader on at

    Sorry but this isn't supported \ possible.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans