Created
July 8, 2015 18:58
-
-
Save byronferguson/d489287580fd4db54593 to your computer and use it in GitHub Desktop.
General Interview Design
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SQL: grab questions for page | |
CF: | |
NavBar | |
Sidebar | |
Body/Content | |
Loop(questions) { | |
Module(options) {} | |
} | |
Next Page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CF: include QuestionType.cfm | |
SQL: Options for QuestionID (options), | |
Previous User Selections (selections) | |
CF: | |
switch(QuestionType) { | |
type1: | |
optionOutput = questionType1(options, selections) | |
break; | |
type2: | |
optionOutput = questionType2(options, selections) | |
break; | |
type3: | |
optionOutput = questionType2(options, selections) | |
break; | |
} | |
<cfoutput>optionOutput</cfoutput> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
questionType1(options, selections) { | |
<cfsavecontent variable="optionOutput"> | |
<input type="radio"> | |
</cfsavecontent> | |
<cfreturn optionOutput> | |
} | |
questionType2(options, selections) { | |
<cfsavecontent variable="optionOutput"> | |
<input type="checkbox"> | |
</cfsavecontent> | |
<cfreturn optionOutput> | |
} | |
questionType3(options, selections) { | |
<cfsavecontent variable="optionOutput"> | |
<input type="number"> | |
</cfsavecontent> | |
<cfreturn optionOutput> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment