Hello Microsoft Community!
Could you please advise on how can I make a 'primary contact' field required for a new opportunity / account?
Thank you in advance!
*This post is locked for comments
Hello Microsoft Community!
Could you please advise on how can I make a 'primary contact' field required for a new opportunity / account?
Thank you in advance!
*This post is locked for comments
Create New Account
Currently it’s not mandatory
Click Form
Double Click Primary Contact Field
In Details Tab Click Edit
Set Field Requirement as Business Required.
Save and publish
Refresh your Account Screen or Again click new
Now primary Contact is mandatory
And if you want on Edit page , Field Validation should get removed
Then add following code in your Onload Javascript.
function RemovePrimary() { var formType = Xrm.Page.ui.getFormType(); if (formType == 2) { Xrm.Page.getAttribute("primarycontactid").setRequiredLevel("none"); } }
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156