Display form inline - Add an anchor link

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
scorman
New Member
New Member
Posts: 3
Joined: Thu Oct 25, 2012 6:40 am

Display form inline - Add an anchor link

Post by scorman »

Hi. I'm running CMSMS 1.12 and have a question about FormBuilder

I have a FormBuilder contact form positioned at the bottom of a long scrolling page. The form has ‘display form inline set’ checkbox ticked.

I want to link to a named anchor link on form submission so when the form is submitted it reloads the page and scrolls down to the position of the {FormBuilder}. The form is part of the template and is displayed on every page.

I’ve searched through the FormBuilder module pages but can’t see where I could add the anchor link. Any help would be much appreciated.

Thank you !
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Display form inline - Add an anchor link

Post by velden »

How I sometimes do it:

Code: Select all

{FormBuilder|regex_replace:'/action="(.*)"/U':'action="$1#your-hash-tag"' form='contact-form'}
Locked

Return to “Modules/Add-Ons”