Page Refresh/Data Reload

Page Refresh/Data Reload

Niko@1966Niko@1966 Posts: 16Questions: 7Answers: 3

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.

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,260Questions: 26Answers: 4,932
    Answer ✓

    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: 16Questions: 7Answers: 3

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

Sign In or Register to comment.