Home > script

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

Have you ever tried to link the grids in CRM together? CRM 2011 has the capability to add grids to a form and link them to the form object, but not to another grid. This JScript will link one grid to another, refreshing the subgrid when a different row is selected on the parent grid.

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

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

Sometimes you need to be able to have preset values, and have the duration auto-update. In this example, I will make the actual durations auto-update when one of the fields is changed. If the duration is changed, then the end date will be changed.

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

© 2011 MSCRM Blogger

This site does not necessarily represent the views of Microsoft. The material posted on this blog are provided AS-IS, and you are to use the content at your own risk. Some of the code and information on this site may use unsupported methods. If you experience any problems using the information provided through this website, please post a comment and we will do our best to assist you, however, we can in no way guarantee support or resolution.

Microsoft Dynamics®, Silverlight®, Visual Studio®, and the corresponding logos are a registered trademarks owned by Microsoft Corporation. MSCRM Blogger has made every effort to supply trademark information about company names, products, and services mentioned on this blog. All third party trademarks are the property of their respective owners. Any rights not expressly granted herein are reserved.