Call a notification through javascript through someone elses form

Hey JavaScript gurus, could someone please try to help here. I have a non-wappler javascript form that is submitting to an external API, sometimes the form won’t submit if there is error with the data. It submits the error info to the browser console, but I want to pop up notification with the error info in it so end user can possibly troubleshoot what’s wrong (most don’t know to check the console from the browser). Here is the snippet from the form, that calls error in console:

How can I make it call the Wappler notification and show the error message?

@patrick

Community Page
Last updated: