Edit

setFormNotification (Client API reference)

Displays form level notifications.

By using setFormNotification, you can display any number of form-level notifications in model-driven apps. They stay visible until you remove them by using clearFormNotification. The height of the notification area is limited, so each new message is added to the top. Users can scroll down to view older messages that aren't removed yet.

Syntax

formContext.ui.setFormNotification(message, level, uniqueId);

Parameters

Name Type Required Description
message String Yes The text of the message.
level String Yes The level of the message, which defines how the message is displayed. Specify one of the following values:
ERROR : Notification uses the system error icon.
WARNING : Notification uses the system warning icon.
INFO : Notification uses the system info icon.
uniqueId String Yes A unique identifier for the message that you can use later with clearFormNotification to remove the notification.

Return value

Type: Boolean

Description: true if the method succeeded; otherwise, false.

clearFormNotification
formContext.ui
formContext