Hi Folks!
I need to show a success message as well as validation errors on a page after submit on a client portal.
The Submit Process works like that: first all data is saved in an After Submit Process, then the validations take place. If there are validation errors, the according messages are displayed by standard APEX logic. If no errors occured, the engine continues and creates the standard success message. However, if there are errors, the user does not get the message, that nevertheless his data has been saved.
As in this blog: Using APEX_ERROR to manage custom error messages | APEX-AT-WORK by Tobias Arnhold before the validations I tried adding :
apex_error.add_error( p_message => '<p class="custom-success-message">All Inputs have been saved!</p>');
, p_display_location => apex_error.c_inline_in_notification);
But then no more validation errors are displayed.
Also:
apex_application.g_print_success_message := '<p class="custom-success-message">All Inputs have been saved!</p>';
does not work, because with validation errors it does not come that far.
So my option would be to check for a special REQUEST value or some other flag, and then insert the Success Message after Page Load with DA. But maybe there is still some other way.
Apex 5.0.1
Thanks for any hint,
best regards,
Tobi