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?
[ ] Lorem ipsum dolor sit amet, consectetur adipiscing.
[ ] Lorem ipsum dolor sit amet, consectetur adipiscing.
Updates
This was partially addressed by flashing a message if errors are found in the psychotherapy annotation form - see ccc0649
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