Formbuilder - scroll down to error on reload

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Formbuilder - scroll down to error on reload

Post by JohnnyB »

You might try adding some JS to rewrite the URL with a hashtag.

maybe add an onsubmit

onsubmit=""

That would have to go into the form tag itself which means adding some smarty regex replace in the FB template.

OR, use that as an example to write a JS function, maybe with jQuery

Code: Select all

$(function() {
var onSubmit = location.href=this.action+'#MY-ANCHOR='+this.s.value; return false;
$('#MY-ANCHOR form').attr('onsubmit', onSubmit);
});
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Post Reply

Return to “Modules/Add-Ons”