Skip to main content

Reference

 

Applies only to Mobile Apps
OutSystems

FeedbackMessage

Displays feedback messages to the user. Used to display personalized feedback messages, specifying options like custom style and auto-close behavior.

Summary

Functions
closeFeedbackMessage Closes the FeedbackMessage that is currently open.
showFeedbackMessage Shows a FeedbackMessage with the specified message, style, auto-closing behavior and HTML encoding options.

Functions

closeFeedbackMessage

closeFeedbackMessage(): void

Closes the FeedbackMessage that is currently open.

Returns

  • void

showFeedbackMessage

showFeedbackMessage(message: string, messageType: FeedbackMessageType, [encodeHTML: boolean = true], [extraCssClasses: string], [closeOnClick: boolean = true], [onClick: function]): void

Shows a FeedbackMessage with the specified message, style, auto-closing behavior and HTML encoding options.

Example:

// prevent feedback message's default close-on-click behavior
$public.FeedbackMessage.showFeedbackMessage("Your data has been submitted.", 1, true, "", false);

Parameters

  • messagestring

    Message to be displayed.

  • messageTypeFeedbackMessageType

    Numeric identifier of the type of feedback message to show (0 = Info, 1 = Success, 2 = Warning, 3 = Error).

  • (Default value) encodeHTMLboolean = true

    Whether to escape HTML characters (default is true so the message is treated as text).

  • (Optional) extraCssClassesstring

    Whitespace-separated class names to be added to the feedback message container to customize the appearance of the message.

  • (Default value) closeOnClickboolean = true

    When true, indicates that the message box will be closed when the user clicks on it.

  • (Optional) onClickfunction

    Function to be executed whenever the feedback message is clicked.

    • (): void

      Returns

      • void

Returns

  • void
  • Was this article helpful?