How to Limit the number of Spouse Contacts to 4?
For male employees, business want to limit the number of Spouse Contacts to 4. System should not allow to enter more than 4 Spouses.
While creating Family and Emergency Contact, user(Male) can create add up to 4 spouses, and it also restrict females to add only single spouse.
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):