Setting Required Field Mark on demand in MS CRM 4.0
In one of our projects we came across the requirement to set required field mark based on change in pick list. To full fill the requirement I find a JavaScript method supports in MS CRM 4.0.
Syntax: crmForm.SetFieldReqLevel("field name", value);
Fields Name is name of the field which you want place as required.
Value represents is this field marked as required or not.
1 for required field mark
0 for not required field mark
Example for required field mark: crmForm.SetFieldReqLevel("pos_datetimeoftxn", 1);
Example for not required field mark: crmForm.SetFieldReqLevel("pos_datetimeoftxn", 0);
Comments