May 102012
 

Lookup information from a related entity using the XrmServiceToolkit or just the REST endpoint.

Click to continue reading
Click Here To View Post With Syntax Highlighting

Nov 012011
 

Recently someone posted a question about the article I had written for CRM 4 as an example. Here is the 2011 version to hopefully help people find the proper information.

Click to continue reading
Click Here To View Post With Syntax Highlighting

Feb 242011
 

Visibility.js provides a simple way to set the visibility of navigation, section, tab, and form control elements using JScript. It also allows you to change the visibility using the onClick event of a checkbox.

Click to continue reading
Click Here To View Post With Syntax Highlighting

Oct 032009
 

Recently on the Microsoft forums someone asked how to change the values of a picklist based on the yes no value of a boolean field. Just add this script to the OnChange event of the yes/no field.

Click to continue reading
Click Here To View Post With Syntax Highlighting

Oct 012009
 

This blog entry contains some helpful information about removing special characters from a string using javascript. I was able to modify it to be just a few of code in an onchange event. Just rename new_name to the attribute your correcting.

if (crmForm.all.new_name.DataValue && crmForm.all.new_name.DataValue.length >0)
{
crmForm.all.new_name.DataValue = crmForm.all.new_name.DataValue.replace(/[^a-zA-Z 0-9]+/g,'');
}

Click Here To View Post With Syntax Highlighting