Maria-Liakata-NLP-Group / annotations-interface

New iteration of the Annotations Interface tool
MIT License
0 stars 0 forks source link

Change default behavior of form submission in HTML #24

Open dsj976 opened 1 year ago

dsj976 commented 1 year ago

Summary

When a form is submitted, the browser reloads the page. The problem with this behavior is that the page in question automatically scrolls all the way to the top and the user needs to scroll back down to the form in order to see the form validation errors that are triggered on submit. JavaScript is required to change this default form submission behavior (perform asynchronous form submission, e.g. using AJAX).

What needs to be done?

Updates

This was partially addressed by flashing a message if errors are found in the psychotherapy annotation form - see ccc0649

dsj976 commented 1 year ago

This was partially addressed by flashing a message if errors are found in the psychotherapy annotation form - see ccc0649