Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
How to make the Email field in the Contacts screen mandatory? — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to make the Email field in the Contacts screen mandatory?

Accepted answer
19
Views
4
Comments
edited Jun 13, 2019 10:32AM in B2B Service 4 comments

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?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!