Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Guides forum / Using Extensible contr...
Guides forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Using Extensible control to show custom HTML code with CSS.

Posted on by
Hello folks,
 
I am making a custom control to visualize html code with css. Since FormHTMLControl is deprecated, i am following the tutorial from: https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/user-interface/build-extensible-control
 
I created the classes 'mycontrol' and 'mycontrolbuild'. Also, i added the css and html resources. Now, before i begin to create the javascript file. I would like to test how the html code in the html file works with defualt values.
 
This is my html code in the html file:
 
<link href=//resources/styles/mycss.css/ rel=/stylesheet/ type=/text/css/ />
<div id=/mycontrol/ data-dyn-bind=/text:'test'/>
    <img id=/testimage/ src=https://mywebsite.com/test-image.jpg/
</div>
 
I added the control on a form. When i open the form, appears the /test/ text but nothing else. Why isn't the image displayed?
 
In the end i would like to add some <div>, since my project requierement is to show a custom html with css. How i do bind html code? 
 
Thanks in advance,
Eisenberk.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,118 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans