SmartForms jump to back after Submit

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
andrewvideouk
Forum Members
Forum Members
Posts: 155
Joined: Thu Aug 20, 2020 10:49 pm

SmartForms jump to back after Submit

Post by andrewvideouk »

Hi Guys

I am trying to work out if there is way to make SmartForms jump to part of a page after Submit I have the form on the bottom of the page and after the user Submits their infromation its shows the message saying thank you etc. The only problem you wouldnt know the message is there as its at the botton of the page was. Its prosblie to return to user back in the same place where was the form nornnly is.

I am using the build it in 'Sample contact form'

Thank you
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1609
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: SmartForms jump to back after Submit

Post by DIGI3 »

Add an anchor where you want it to scroll to, then add javascript in the "Smarty template for the final message to display to the user" field that scrolls to said anchor. If you use CMSExt then you can {js_add} here, but you can also just use inline script tags.
Not getting the answer you need? CMSMS support options
andrewvideouk
Forum Members
Forum Members
Posts: 155
Joined: Thu Aug 20, 2020 10:49 pm

Re: SmartForms jump to back after Submit

Post by andrewvideouk »

Thank you. I found some old java code from formbuilder.
Post Reply

Return to “Modules/Add-Ons”