
Hi,
I have the script that make field 'name' required on form load. This field is set to optional in CRM. There is also business rule, which changes 'name' to optional in some cases. (it wasn't me who set this like this)
Sometimes I have the problem that in the case in which business rule should make the field optional it's still required, is it possible that sometimes js script i loaded after business rule or maybe business isn't called at all?
Thank you for any help,
Henryk
Hi,
In CRM Javascript VS Business Rule-> The script trigger first then business rule.
Now, in above case, we can do below things:
1. Delete/Deactivate the business rule.
2. Update the logic business rule logic. Like it should be trigger when user in Edit mode.
3. If script logic can be handled through business rule then move to business rule and remove the script.
4. If you want the "name" to be mandatory all the time then in Field Customization set it to business required.
Thanks,
Pradeep.
Please mark this as VERIFIED if it helps.