Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Add HTML Web Resource for all forms

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

we need to add a custom HTML web resource in MS Dynamics 2016 (on premises/online). The problem is, web resource can be added on a single entity form at a time. Whenever user navigates to another form, web resource is not available there. Is there any way to add web resource for all forms just like shown in this demo.

*This post is locked for comments

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Add HTML Web Resource for all forms

    Hi Rizwan,

    I think you have to do this one at a time.

    Once option that you might have though is customize the application ribbon and create a button that calls a function.

    The function will perform that code that you want (which is to display the web resource).

    How to display the web resource is up to you, since you will be manipulating the DOM, and I am not sure this is supported. You will have to do this using jquery or other components... Basically inject Html at a particular location on the page.

    On the load event of the button function return false, so that the button is not displayed.

    Hope this helps.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Add HTML Web Resource for all forms

    Hi Rizwan,

    the unique way to do it is to manipulate the xml form content of each entity which need it.

    Before to proceed insert the webresource into one form, download xml content, copy web resource xml node and then manipulte all the others form xml.

    If you are familiar with SDK is not an hard job.

    Hope it helps!

    If you found the answer helpful, please mark as Verified 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna, ITALY

    Independent Contractor

    http://www.francescopicchi.com

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans