Is there a module that enables me to create custom forms with custom fields and selections then I can add that form into a page or as a node in drupal?

Comments

twc’s picture

twc’s picture

how's that working out for you? let us know if it isn't because somebody will be able to help you in one way or another if you haven't gotten it already.

twc

yraffah’s picture

It seems like CCK is not what I'm looking for, or maybe I didn't know how to do it in CCK.
Basically I, as a site admin, will create a page, that page should have fields to be filled and submitted by authenticated users for example. This should not be related to the user's profile by any means, although it would be great if it can "import" the user details from his/her profile.

Why am I looking for this?
I'm building a community site where users in reality are requested to come to an office and fill an application form for registration, I want that for to be online, simply by filling the same fields and submitting the information to a particular E-mail address.

yraffah’s picture

Thanks, I never checked this module.
Will give it a try and see how things go after that :)

twc’s picture

ohh ok...
well I did the same thing to some extent, and it was done by simply creating a new module (actually not so simple, but simple enough). It's not finished and the submission form has to be finished, but yea, that's my advice. Plus, after you have built a module on your own, it's much easier to do what you want with drupal because you have a much better understanding of it.

http://drupal.org/node/508

I would give you my code, but it would be just as easy, if not more easy, to learn this way because this gives you explinations each step of the way.

Keep in mind that I might have just failed to find the module that allows you to do this. So you can do what I did or continue searching. If you do find something though, would you post it?

Good luck!

twc

yraffah’s picture

Thanks a lot for your reply...

I will definitely share whatever I find. Although I might not be qualified enough to work on your code, or even start my own, but I would really appreciate if you can thankfully share it :)

Jenny C’s picture

Hi-- It seems to me CKK http://drupal.org/project/cck is perfect for this - are you sure it's not right for you? It's super flexible. I just installed it and created a new content type -- "report" for users to submit minutes from their committee meetings. There are different fields for date, attendees, location and summary. It was relatively painless to install and use.

cayenne’s picture

We are using CCK to build the entry forms for the Pacific Cup Yacht Race. We collect a lot of info and it works fine. With Field Permissions, we can also create hidden fields that we use to track payments, etc.

www.pacificcup.org

:)

yraffah’s picture

blumby and Cayenne, Is it possible to show me examples? Maybe I was not able to properly build the correct type of node or something...

Jenny C’s picture

and I can't figure out how to easily let you see it -- but here are the steps I took, maybe this will help envision what it is:

  1. Go to admin by task >>content types and then click on the tab, "add content type" like, "report."
  2. Fill in the title field and save the new content type
  3. Find the new content type in the list of content types and click on "edit."
  4. Click on "add field" and repeat for however many fields you want.

To display the new content type, there might be another way, but I used taxonomy.

  1. Go to the module taxonomy and click on "categories".
  2. Click on the tab "add vocabulary" and add a new name. Note the term number in the address bar. At the bottom of the form, check off your new content type in the list of types to associate with the vocabulary.
  3. Add additional terms to that one -- you could add only one term like "members only" for instance, or anything else you want your users to choose. I used "commitee" and then listed the committees for them to choose. If you forget the number, just go back to the list and click on edit to see it in the address bar --you'll need the term to display the content later.
  4. Under create content or node/add, see your new content type, and the form will have the term choices in the form.
  5. Add a link to the menu taxonomy/term/34, and any nodes that have been created will be listed.

If you want to restrict access to the content, you can use the taxonomy access control module.

yraffah’s picture

I have already made the first 1-4 steps of creating a new content-type, now comes the "confusing" part for me....

Should I add a new entry with all my required fields and post it to the site (have it published) first or it will be linked from a menu item to "something" that I can't figure out? It is a bit confusing to me at moment. Actually I couldn't follow you after adding a term to a newly created vocabulary for the "reports". Is it possible to explain that part for me please? It seems like we are getting there :)

Thanks in advance...

Jenny C’s picture

If I understand, you now have a content type, that's listed in the list of content types? You can now add a link -- node/add/report to the menu so users can click on it and get the form that says at the top "submit report."

To see the results of what the user submitted, you go to taxonomy/term/88 or whatever -- the name of the vocabulary you associated with the content type.

Does this make sense?

If you want to make the results private, so only certain roles can see it, you can add another vocabulary and add "private" as a term, and configure private to have restricted access. I'm not sure if you can make that a default and make it invisible in the form but I think you might be able to.

yraffah’s picture

I think I got the whole idea now and many thanks to you for your great help, however, is it possible to have the users submit the "report" or "forms" to an E-mail address?

Jenny C’s picture

it doesn't seem like it would be that hard - maybe you should ask on the big forum.

ericjam’s picture

How do I get this new CCK content type to email to an address after the user clicks send?