
function FormNotificationInfo(executionContext) {
var formContext = executionContext.getFormContext();
var value = formContext.getAttribute("cre80_shownotification").getValue();
var infoMessage = "This is Warning Notification.";
if (value == 1)// field label is No
{
//clear error notification
formContext.ui.clearFormNotification(888);
}
if (value == 0)// field label is Yes
{
//information notification
formContext.ui.setFormNotification(infoMessage, "WARNING", 888);
}
}