Active
Project:
Signup
Version:
6.x-1.0
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2012 at 01:45 UTC
Updated:
11 Jan 2012 at 00:53 UTC
I have a number of different events that I want to have people sign up for. The additional information required is different depending on the type of event. Is it possible to have a number of pre-defined forms selectable when enbling the sign-on function for the node.
Comments
Comment #1
andrewm63au commentedComment #2
cwyant commentedI'm no expert, and I'm sure there's a better way to do this, but I have a working solution in 7.x dev.
Create a taxonomy for your "options" (additional form elements such as number of attendees, additional info, food allergies, etc)
In your event content type, add this taxonomy field with checkboxes to select if you want to add the additional form elements or not.
In signup_form.inc, create a script to check which taxonomy ID(s) are present, then add the corresponding form elements.
This script collects TIDs for field "field_event_signup_fields" and stores them in array $result:
Then create form elements for each option:
Again, I apologize for the elementary PHP logic, but I hope it helps.
Comment #3
andrewm63au commentedThanks, I'll see if I'm up to editing scripts
Comment #3.0
andrewm63au commentedcorrected typo