How to make the Email field in the Contacts screen mandatory?
Summary
How to make the Email field in the Contacts screen mandatory?Content
Hello all,
I have the below script that states that if the Email field in the Contacts screen is blank then an error should be generated:
if (Email == '')
{
throw new oracle.jbo.ValidationException('Sorry! In order to proceed please define an email')
}
When testing the screen, the error message is generated whether a value is entered in the Email field or not. If I add:
if (Email == '')
{
throw new oracle.jbo.ValidationException('Sorry! In order to proceed please define an email')
}
else
{
return true
}
The application will allow the user to enter blank values. I cannot make the field mandatory because it is of type formula text. Can anyone help please?
0