I update some fields by called PHP script with afterstore method. Into PHP file I have some complex controls on data entered by user. I want display an error message to inform user on reason on error, witch field must be corrected and so on... Is exist a method ? I think to add a custom field and display it if it is filled by PHP script but I don't sure that it is the best solution.
In the same way, if the error is encountered into a PHP script called by beforeStore, how I can cancel the save procedure by Seblod ?
I'm Ok with you the code must be used into BeforeStore. It's Ok with your code, modification are not recorded and error message is displayed. Nevertheless the message "Successfully saved" is also displayed, as the form has been saved. It is very confusing. I haven't found how I can remove this message and have only the error message.