Quantcast
Viewing all articles
Browse latest Browse all 8223

Can I add HTML to a CRM form

Is there a recommended way to add large chunks of HTML to a CRM form?

I have several instances where I want custom controls on a form and I want them to interact with the CRM data on a form. So a typical example would be the date and time controls in CRM, which are awful, I replace with some jQuery libraries which gives a much better control. I use jQuery to update the CRM controls which are in a hidden tab. So the CRM controls are responsible for maintaining the data but I use a much better set of controls.

But the only way I have found to include these controls is to have a Javascript library which in the form onLoad writes a newsection of HTML over one of the existing sections. To do that I generally include on the form a web resource containing a dummy web page and use jQuery to overwrite the parent of that element.

I can't apparently use web pages in CRM themselves because they do not communicate with the main page.

So for example in my page I include a webresource (dummy.html) in a section called WebResource_dummy. In the onLoad function I run some jQuery which includes;

$('#WebResource_dummy_d').html(MyHTML);

to override the parent element. But this all seems a but flaky and it seems there should be a way to include a web fragment on a CRM form directly. Is there a better way to do this?


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>