Forums/Community Forums/Developer Discussion Forum

Answered

Submit in place for the Custom Form

Nate Baker
asked this on November 23, 2010 00:31

It has been possible to add forms to sidebars in Sitemason templates
all along. However, once the form is submitted, the user is taken to a
confirmation page away from whatever page they were on. When it comes
to just a simple contact form or quick survey, it would be a whole lot
better to have the form submit (or show errors if necessary) in the
same location on the original page. It can be done with hacks like
using an iframe, but that has its drawbacks.

Chip Hayner of CentreSource just asked for a better way, so I added an
option to the Custom Form under the Customize Behavior tab. By
choosing "Submit to the page the form is on" under Form Action, your
form will stay on the same page. To see this option, you need to be
set to at least the Advanced user level in User Preferences.

Chip used the feature in Nashville Office Furniture's website to allow
people to submit info about projects. Since there are required fields,
you can just click "Submit" to have it return errors in place. If you
were to fill out the form (and please don't unless you really want to
submit a project), you would see the confirmation page in the same
location.

http://www.nashvilleofficefurniture.com/chairs

Originally posted in the Sitemason Developers Google Group on Thu, 06 May 2010

 

Comments

User photo
Kevin Kennedy
Signal Hill

This is exactly an issue I was having with the Custom Form tool, but I am not seeing that option under Customize Behavior? All I see are user tracking options.

February 09, 2011 09:27
User photo
Chris
Sitemason, Inc.

Hey Kevin,

Thanks for your inquiry about the features involved with the Custom Form Tool. This was a hidden feature as part of our beta process however it is ready to go live so I will certainly be making a post to the main forum about this thanks to you!

I already took care of this for you but if you click on "user Preferences" at the top of the sitebuilder, it will take you to an options page. You can see a drop down menu labeled "User Level". Normally, the options end at "advanced" but if you type "?full" at the end of the user preferences URL, it will unlock the ability to change yourself to Developer and unlock alot of new tools in the CMS!

Thanks for the question and have fun with the new features!

February 09, 2011 11:32