re: forms

Events happening in the community are now at Drupal community events on www.drupal.org.
Nolan's picture

Hi,

Does anyone have any experience of using Forms in Drupal. I wish to create a form where people register their details e.g. name, add, tel etc. and then when they press submit an email is fired off to an administrator with the details contained in the email.

thks,
Nolan.

Comments

Webform

sphism's picture

The webform module: http://drupal.org/project/webform does all that for you, no need to get your hands dirty, you just add different fields to your form and give users permission to submit the form. Submissions will be emailed to you and admin can view results by various means.

The only downside to webforms is that it saves the data in a bit of a weird (non drupally) way... but if you don't need to do anything else with the data then it's great.

If you don't use webforms then you can just set up a custom content type, add your cck fields, give permission to users to create new content type. You can have notifications sent to you when new content added (triggers and actions) and you can use Views to display the data.

Good luck

m

thanks sphism. the webform

Nolan's picture

thanks sphism.

the webform module is just what I am after.

Hi, I've actually decided to

Nolan's picture

Hi,

I've actually decided to go down the cck route as I want to hold the data in a drupally way and to build views etc form it.
I've created a new content type called Users which contains new fields such as name, phone number, email etc. However, the content type also contains the standard fields such as title, body, revision format, comment settings, path settings etc. I wish to create a page without those standard fields appearing. Is there a way?

thks,
nolan.

Title is the only required one

stevepurkiss's picture

You need to keep the title one in, but you can use Auto Nodetitles (http://drupal.org/project/auto_nodetitle) and set some tokens so it gets created automatically and the field isn't shown to the user.

The body field you can just remove when you create the content type, it's not mandatory. I often do this as I want to be able to control the size of the textarea which you can't do with the standard body field. There's also a module which allows you to specify a CCK field for teasers which helps if you're using those as it usually only does teasers on the standard body field.

The revision format won't be shown to normal users, comments you can just disable, and path settings are only shown to admin. There are modules out there which enable you to hide other form parts, but I don't think you need those by the sounds of it.

HTH

Steve

cck?

stephenrobinson's picture

Just enable the profile module?

Brighton

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week