Skip to Main Content

Breadcrumb

Examples

Error Messages

You can show error messages using just static text, text derived by a Javascript expression or returned from a Javascript function. You can toggle auto dismiss and use HTML in the message or for tighter security escape HTML.


Clearing Existing Errors

Each time you show an error it is appended to the list of errors. There may be cases where you want to clear the previous list of errors. You can use an option when showing an error message to clear the previous messages or you can change the action to just clear the messages only. For example:


Error Display Position & Page Item Errors

You can control the position on an error message when it's associated with an item. For example:

Success Messages

You can show success messages using just static text, text derived by a Javascript expression or returned from a Javascript function. You can toggle auto dismiss and use HTML in the message or for tighter security escape HTML.


Hide Success Message

Each time you show a success message it replaces the last one shown. There might be situations where that is not an issue, but when it is please use the "UC - Notifications" plug-in.

There may be cases where you want to clear the success message. You can easily do this using the "Hide Page Success" action. For example:

FAQ

  • Why can I only show one page success message?

    The reason why you can only show one page success message is because we re-use the APEX API "apex.message.showPageSuccess". Unfortunately this API has not been designed to show more than one message. In the situations where you need to show multiple messages we recommend using the "UC - Notifications" plug-in.

  • UC - Message Actions or UC - Notifications?

    If you are perfectly satisfied with the way notifications natively behave in APEX but do not want to write Javascript to invoke them, use UC - Message Actions. This plug-in relies on the very same Javascript API-s that APEX provides and uses. The only additional feature is the ability to autodismiss notifications after a given period of time.

    UC - Notifications on the other hand however is a much more comprehensive plug-in, as it is built on top of a custom Javascript library. It can handle not only Success and Warning messages, but also Info and Error. You can show multiple notifications at once, as opposed to only one, customize them by setting their color, position, how they are dismissed, and more.

    The right plug-in for you depends on your use case, for simple cases, go with UC - Message Actions. For more advanced cases, go with UC - Notifications.