Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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?

edited Jun 13, 2019 10:32AM in Fusion 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!