Setting field requirement level with javascript

Hi,

setting field level requirements through scripting is possible and helps a lot while customizing CRM.

Basically to change the requirement level, write the below code to your necessary event…(onChange, onLoad, onSave, etc…)

To set no requirement;

crmForm.SetFieldReqLevel(“fieldname”,0);

To set “business required” level:

crmForm.SetFieldReqLevel(“fieldname”,1);

To set “business recommended” level:

crmForm.SetFieldReqLevel(“fieldname”,2);

This is it.

Have fun.

Advertisement

About convar

Cem Onvar works as CRM Team Leader at Tradesoft Business Services, in Turkey. Cem has been working on Microsoft Dynamics CRM since version 3.0, and has a strong knowledge about the product. He has been awarded Microsoft Dynamics CRM and SQL Server Certificates. His knowledge is extensive and focused on Microsoft technologies.
This entry was posted in 4.0, Form Scripting, MSCRM. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s