This topic is locked

Prevent Error Occurred Message Inline

12/26/2019 6:26:32 PM
PHPRunner General questions
lefty author

I have a query to check for record exists before add. If the record exists I want to display a message inline and return false. Since I cannot do an alert with JavaScript on the page because I am inline , I use the $message function. When testing I still get Error Occurred and then the message . Is there any way around getting the error occurred from showing and just showing the $message = "Duplicate Records Cannot Add on the same date" for example.
I get error occurred>> Then the error (orange box with the message ) . I was thinking of a more professional way of presenting this message to the user? I tried to setup inmisc tab under Detailed Error messages but for one it will show message for all error inlines in other parts of the project and two it still shows error occurred even though I setup not to.
Any Ideas?

Sergey Kornilov admin 12/26/2019

I would not recommend using inline Add/Edit in this case. Regular Add or Add in the popup will work better as they have a dedicated place to display error messages.