Requirements:
This is an idea for creating a step by step form (Form Wizard).
The basic idea is, we hide some custom thread fields, and display it in some certain conditions.
For this example, we will use this conditions:
More info about this conditions:
http://mybbhacks.zingaburga.com/showthread.php?tid=740
Custom Thread Fields Settings:
- Attending - Ceremony
- # of Guests - Ceremony
- Title: # of Guests - Ceremony
- Key: fw_g1
- Description: Please select the number of guests from the option list.
- Applicable Forums: select in which forum this form should be applied.
- Input Field Type: Option Buttons
- Values List:
Modify it as our needs.
- Editable by / Required Field?: Everyone
- Display Format:
- Settable Value Permissions:
- Value: leave it blank
- Editable by Groups: Administrators
- Hide Input Field: Yes
- Attending - Lunch
- Title: Attending - Ceremony
- Key: att2
- Description: If you will be joining us for lunch, please choose Yes. Otherwise, please choose No.
- Applicable Forums: select in which forum this form should be applied.
- Input Field Type: Option Buttons
- Values List:
- Editable by / Required Field?: Everyone
- Display Format:
- Settable Value Permissions:
- Value: leave it blank
- Editable by Groups: Administrators
- Hide Input Field: Yes
- # of Guests - Lunch
- Title: # of Guests - Lunch
- Key: fw_g2
- Description: Please select the number of guests from the option list.
- Applicable Forums: select in which forum this form should be applied.
- Input Field Type: Option Buttons
- Values List:
Modify it as our needs.
- Editable by / Required Field?: Everyone
- Display Format:
- Settable Value Permissions:
- Value: leave it blank
- Editable by Groups: Administrators
- Hide Input Field: Yes
- Special Diet
- Title: Special Diet
- Key: fw_d1
- Description: If you have a special dietary requirements, please choose Yes. Otherwise, please choose No.
- Applicable Forums: select in which forum this form should be applied.
- Input Field Type: Option Buttons
- Values List:
- Editable by / Required Field?: Everyone
- Display Format:
- Settable Value Permissions:
- Value: leave it blank
- Editable by Groups: Administrators
- Hide Input Field: Yes
- Diet Requirements
- Title: Diet Requirements
- Key: fw_d2
- Description: Please indicate what is your requirements are.
- Applicable Forums: select in which forum this form should be applied.
- Input Field Type: Multiline Textbox
- Editable by / Required Field?: Everyone
- Display Parsing: Plain text with newlines
- Display Format:
- Hide Input Field: Yes
- Attending - Party
- Title: Attending - Party
- Key: att3
- Description: If you will be attending party, please select Yes. Otherwise, please select No.
- Applicable Forums: select in which forum this form should be applied.
- Input Field Type: Option Buttons
- Values List:
- Editable by / Required Field?: Everyone
- Display Format:
- Settable Value Permissions:
- Value: leave it blank
- Editable by Groups: Administrators
- Hide Input Field: Yes
- # of Guests - Party
- Title: # of Guests - Party
- Key: fw_g3
- Description: Please select the number of guests from the option list.
- Applicable Forums: select in which forum this form should be applied.
- Input Field Type: Option Buttons
- Values List:
Modify it as our needs.
- Editable by / Required Field?: Everyone
- Display Format:
- Settable Value Permissions:
- Value: leave it blank
- Editable by Groups: Administrators
- Hide Input Field: Yes
Custom Template:
- fw_newthread
We use the Preview Post button for the Next button.
- fw_postbit_first
- fw_editpost_first
Additional Info:
- What conditionals we should use, depends on what conditions should be applied for each custom thread fields.
- This form wizard doesn't use Javascript.
- The step by step form works in newthread only.
- The step by step is "breakable" with direct URL.
Well, that is the idea. Not quite sure whether this idea is OK or not
Live Demo:
http://www.14.mynie.co.cc/newthread.php?fid=49
We can't submit the form in the demo forum, because I've removed the Captcha from the template. But we can preview it.