Page 1 of 1

Display form inline - Add an anchor link

Posted: Tue Jun 30, 2015 5:45 am
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 !

Re: Display form inline - Add an anchor link

Posted: Tue Jun 30, 2015 12:18 pm
by velden
How I sometimes do it:

Code: Select all

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