Make form scroll to itself after submission by adding “action=/#xxx”
-
First of all, I’d like to say what a great plugin this is! All I wanted was a simple contact form without adding a bunch of PHP functions and SQL queries to my site, and I’m glad I found this gem after almost giving up!
Two important usability improvements I believe should be implemented, one of which takes no effort on the author’s part at all:
1. The current form works fine if it’s located near the top part of a page. However, if the form is located at the bottom of a longer page (for example, those who add it to the bottom of their one-page website design), after user submission the website refreshes and scrolls back to the top (default behavior). This is problematic because the user won’t see the submission success or error message without scrolling all the way down. The quickest fix to this would be adding the attribute action=”/#vscf” to the <form> element in vscf-form.php. This way after submission the page is scrolled automatically to the form section.
2. In addition to having the subject = xxx short code attribute completely overrides the user entered subject, is it possible to add an option to append a custom prefix to the user entered subject. By default VSCF seems to add the (Site Name) in front of the subject and it would be great if this can be customized as some users may want to target these with email filter rules.
Thanks again for making this great plugin!
P.S. I hope the CSS classes and form HTML codes won’t be modified much in the future, as I believe many like me already applied custom CSS to the form, and changing these things can break them. Not a huge deal though as the form is so simple only a couple of lines need to be modified.
- The topic ‘Make form scroll to itself after submission by adding “action=/#xxx”’ is closed to new replies.