Page Refresh/Data Reload

Page Refresh/Data Reload

Niko@1966Niko@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

  • kthorngrenkthorngren Posts: 20,425Questions: 26Answers: 4,794

    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 and submitError 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

  • Niko@1966Niko@1966 Posts: 10Questions: 5Answers: 2

    submitSuccess is what I needed. Thanks for your help!!

Sign In or Register to comment.