Skip to main content

 

 

 

 

Template:OutSystems/Documentation_KB/Breadcrumb_New_Layout

 

 

Template:OutSystems/OSLanguageSwitcher

 

Applies only to Mobile Apps and Reactive Web Apps

 

 

OutSystems

FeedbackMessage

Template:OutSystems/Documentation_KB/ContentCollaboration
  • Edit
    Collaborate with us
    Edit this page on GitHub
  • Displays personalized feedback messages to the user.

    Summary

    Functions
    closeFeedbackMessage Closes the FeedbackMessage that is currently open.
    showFeedbackMessage Shows a FeedbackMessage with a specified message. You can enable HTML encoding, add CSS classes, and set the behavior on click.

    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 a specified message. You can enable HTML encoding, add CSS classes, and set the behavior on click.

    Example:

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

    Parameters:

    • message: string
      Message to be displayed.
    • messageType: FeedbackMessageType
      Type of feedback message to show (0 = Info, 1 = Success, 2 = Warning or 3 = Error).
    • (Default value) encodeHTML: boolean (default: true)
      Whether to escape HTML characters (default is true so the message is treated as text).
    • (Optional) extraCssClasses: string
      Whitespace-separated class names to be added to the feedback message container to customize the appearance of the message.
    • (Default value) closeOnClick: boolean (default: true)
      When true, indicates that the message box will be closed when the user clicks on it.
    • (Optional) onClick: function
      Function to be executed whenever the feedback message is clicked.

    Returns: void

    • Was this article helpful?