I have an action extension "HireResourceNonEmployee" that extends delivered action "HireResource".
On the form, there is an email field, and a SendWelcomeEmail checkbox, which is checked (TRUE) by default. The user wants to keep it this way.
I want to prevent the action from being submitted if the user forgets to enter an email address in the form.
It should pop up an error message that says "Please enter an email address or uncheck the Send Welcome Email box".
Something like this, but I don't know how to use it in an Action Extension:
constraint (EmployeeContactEmailAddress = '' AND SendWelcomeEmail is true)
"Please enter an email address or uncheck the Send Welcome Letter box"
How can I accomplish this?