Tech Tip: Displaying Toast Notification from a Function in Qodly Studio
PRODUCT: Qodly Studio | VERSION: 21 | PLATFORM: Mac & Win
Published On: December 2, 2026
When a function bound to an event reports feedback to the user with the WebForm class functions setMessage(), setWarning() or setError(), keep in mind that two conditions apply. First, the Provide Feedback checkbox must be enabled on the event, otherwise no feedback is displayed in the interface. Second, calling a function is a single HTTP request that produces a single response and a single update of the UI, so only the last toast notification set by the function is displayed. For example, imagine a function that first calls setError() to report that stock is low for one item, and then continues and calls setMessage() to report that the order was saved. The user sees only the informational toast saying that the order was saved, and the error is never displayed, even though it was set before the function ended. To avoid losing a message, make sure that the most important feedback is the last one set in the function, or combine several results into a single message.