views:

228

answers:

2

Most CMS' have a way to create forms for users or anonymous users to fill out. Is there a mechanism for creating forms like this in Sitecore 6?

As far as I can tell, the only way to make forms like this would be to manually create them in a sub-layout (user control), and then add that sub-layout to a page. Does anyone know a better way?

A: 

Your UserControl suggestion is the way I would do it.

Sitecore, like other CMSes such as RedDot, has a disconnected publishing model. Content is populated in an editing environment before being pushed to a live environment.

Consequently, the live environment is read-only as far as the CMS is concerned. This disallows native form processing because Sitecore doesn't expect updates to be made to the live database. To store data from anonymous users you would need to create custom database tables outside the control of the CMS.

As far as I know, there is no forms API comperable to Drupal's.

ctford
+1  A: 

It depends on who you want creating the forms.

If you want content authors or admins to be able to use a wysiwyg-like interface for creating and updating forms, then I would recommend using the Web Forms for Marketers Module that is available for Sitecore. While certainly not the panacea for allowing content authors to create forms, it is pretty robust and also very extensible.

However, if it will primarily be developers creating and maintaining the forms, then it will probably be easier for you to go with the sublayout approach.

To ctford's point, the Web Forms for Marketers Module does use it's own database for form data storage, not the typical Sitecore content databases. And you'd probably want to do something similar for your forms as well, rather than writing data back into Sitecore. But that will depend on your business requirements.

aweber1
I am using the Web Forms For Marketers Module and it is acceptable. It also gives you the option of exporting the form to an ascx control so you can take complete control of it, but then you lose the flexibility of the WYSIWYG editor for that form.
SkippyFire