Page Refresh/Data Reload
Page Refresh/Data Reload
Niko@1966
Posts: 10Questions: 5Answers: 2
What is a good way to refresh/reload page data while still being able to see validation errors. I can refresh the page after submission using, editor.on('submitComplete', function() {
location.reload();.
However, when i do this i can no longer see validation warnings from the server side.
Answers
I'm not sure why you are reloading the page but maybe you can use
inError()
to check for errors and not reload the page if there are errors.Or maybe use
submitSuccess
to reload the page andsubmitError
to allow handling the error before reloading the page.If this doesn't help then please provide more information about the requirement to reload the page.
Kevin
submitSuccess is what I needed. Thanks for your help!!