Display Alerts Using JavaScript

This guide will demonstrate how to display alerts to users using JavaScript.

window.formyoula.event_trigger('app:alert:display', { 
    title: 'Alert Title',
    message: 'Alert message',
    dismissable: true,
    fadeOut: 20000,
    center: false,
    type: 'warning'
});
image

Setting fadeOut to 0 will disable the animated fadeout.

The following alert types are available:

  • success
  • info
  • warning
  • danger
image

For any questions, please contact us - [email protected] or the Formyoula in-app chat 🙂