AppGini 5.82 with JavaScript Helper and no plugins installed. It is an older app (originally generated in 2015) but have overwritten all files when generating from AppGini.
Was able to get the solution here (viewtopic.php?f=7&t=1740&p=10871&hilit= ... age#p10871 to work, but...
Wouldn't it be nice if the built-in functions for errors/dialogs could be accessed in some way through /hooks? By "built-in" I mean the functions in TABLE_dml.php that produce dialogs like this and highlight the offending field instead of going back to the table view with an error at the top of that page:
I tried adding my own validation to one of the if{} statements in TABLENAME_dml.php and it did work (stopped the insert) but the dialog came out like this and the field was not highlighted after clicking "Back":
Hope I haven't missed this somewhere when I searched forum and google or made some stupid error in my code, just thought I would throw it out there FWIW. Imagine it can be done through the _dml file but so far I have been able to avoid editing system files and would prefer not to have to do it that way.
Thanks,
Brandon
custom error messages
Re: custom error messages
I am definitely following and can see the need!