Hi all,
I'm trying to show a form notification when a specific field on the form contains data.
I'm not good with Javascript, but have pieced together the below:
function ResellerAlert(executionContext) {
var formContext = executionContext.getFormContext();
var reseller = formContext.getAttribute("parentaccountid");
if (reseller != null) {
formContext.ui.setFormNotification("This account has a Reseller listed, please check before quoting.", "WARNING");
}
}
The problem I have is that the notification shows all the time. Even if the 'reseller' field is empty
The 'reseller' field is a lookup field to another account.
What am I doing wrong?