I am creating a volunteer registration form and they will have the option of choosing a job to do. Is there a way of taking away options once a spot fills up in a form?
I am creating a volunteer registration form and they will have the option of choosing a job to do. Is there a way of taking away options once a spot fills up in a form?
Comments
Comment #1
djalloway commentedWebform does not provide a way to do this, you'll have to do it the old fashioned 'manual' way.
Comment #2
apb1991 commentedOkay thanks!
Comment #3
bartezz commentedI've put some code together and create a patch called dynamic_select http://drupal.org/node/151603
With this you can populate a webform select widget with anything you can pull from the database.
This could probably help you....
What I'm thinking of is;
- let's say you have a content type called volunteer jobs
- populate the webform select widget with the titles of the published volunteer job nodes
- use some php code in the additional processing field of the webform you are using to unpublish the node of the volunteer job that was selected via the dynamic select
Et voila!
Ofcouse you don't have to unpublish the nodes, another option would be to give the content type a cck field which you set to 1 via additional processing after someone volunteered and then just show node titles in the dynamic select with the cck field value of 0...
Just some thoughts, hope they help!
Cheers
Comment #4
quicksketch