Here are three ways to set the Requirement Level of an attribute:
1. Customizations -> Customize entity -> > -> Attributes -> > ->Required Level -> Here you can set it to Business Required, Business Recommended or No Constraint.
2. Using crmForm.SetFieldReqLevel(“>”, 0/1/2);
3. Using crmForm.all.>_c.className=’req’;
crmForm.all.>_c.setAttribute(“req/rec/none”, “0/1/2″);
HTH,
Niths
I changed it. When I click save, it says it is changing the attribute and then it is still required? Why?
Comment by Joe — July 21, 2008 @ 6:12 am
Are you receiving an error? Please paste your script here.
Comment by niths — July 24, 2008 @ 10:49 pm