Is there a way to get rid of the form success popup in the Perspective app?

I am using the form component in a view in the Ignition Perpsective app on a tablet. My handleSubmission script checks to see if an entered value matches with any value in a database to make sure its a valid entry. If its not a valid entry, I have a separate error message popup.

I am wondering if there is a way to disable the auto-popup in the top right corner that says "Success. Form has been submitted succesfully" since it will show up even if the entered value fails my database check.

One easy way to hide the default popup is to set the responseDisplay’s display to none. But that only hides it, it won’t make the form return an error.

To actually stop the success message, return something like this in your form handler when your check fails:

response = {
"success": False,
"title": "error",
"message": "error"
}