Hi All
When a Lead is created and the Parent Contact is selected we force the Lead to be saved using JScript below.
function OnChange_ExistingContact()
{
if ( formContext.ui.getFormType() == FormType_Create )
{
var existingContact = formContext.getAttribute( "parentcontactid" );
if ( existingContact != null && existingContact.getValue() != null )
{
formContext.data.entity.save();
}
}
}
However in UCI this displays a dialog box below:
Is there a way to suppress these messages?
The lead already shows that the Lead is saving in the background before the dialog is displayed and seems unnecessary and would be annoying to users.
In Classic UI the Lead saved as normal without the dialog.
Cheers
Alan