Wednesday, August 13, 2008

Convert a Text Field to Label

Sometimes we need to display static text inside the crmForm. The simplest way to go about it is to create a text field, disable it and remove its borders.


function OnCrmPageLoad()
{
ConvertControlToLabel( "ControlId");
}

function ConvertControlToLabel( controlId )
{
var control = document.getElementById( controlId );
if( control )
{
control.Disabled = true;
control.style.border = "0px";
}
}

OnCrmPageLoad();

2 comments:

damaris said...

Hello;
My name is Damaris. I was wondering if you could help me. I need to be able to send e-mails in the text from only and not in HTML format, using Microsoft Dynamic CRM 4.0. Is there any way to turn off of disable the HTML format in CRM?
Thanks!

damaris said...

convert HTML e-mails into text emails using CRM