Types of Questions

You are here:
< Back

Type of questions that can be created by ClinDATC

Input TypeCodeDisplay
Radio Button Input<input type="radio" ...>
radioaddElement ('radio', $fieldname, $qn[$fieldname], null, $options);

radio-inlineaddElement ('radio-inline', $fieldname, $qn[$fieldname], null, $options);
radio-inline-braddElement ('radio-inline-br', $fieldname, $qn[$fieldname], null, $options);
Drop-down List<select ...></select>
selectaddElement ('select', $fieldname, $qn[$fieldname], null, $options);
select-braddElement ('select-br', $fieldname, $qn[$fieldname], null, $options);
Checkboxes Button Input<input type="checkbox" ...>
checkboxaddElement ('checkbox', $fieldname, $qn[$fieldname], null, $options);

checkbox-inlineaddElement ('checkbox-inline', $fieldname, $qn[$fieldname], null, $options);
checkbox-inline-braddElement ('checkbox-inline-br', $fieldname, $qn[$fieldname], null, $options);
Text Input<input type="text" ...>
textaddElement ('text', $fieldname, $qn[$fieldname]);
text-inlineaddElement ('text-inline', $fieldname, $qn[$fieldname]);
Multi-line Text Input<textarea ...></textarea>
textareaaddElement ('textarea', $fieldname, $qn[$fieldname]);
Range Input Type<input type="range" ...>
rangeaddElement ('range', $fieldname, null, array("min"=>"0", "max"=>"100", "step"=>"1", "style"=>"width:50%;", "class"=>"col-md-6", "text-before-range"=>'Strongly agree', "text-after-range"=>'Strongly disagree'));Stand-alone range slider without question display (imagine this sentence does not display)
Agree Disagree
range-braddElement ('range-br', $fieldname, $qn[$fieldname], array("min"=>"0", "max"=>"100", "step"=>"1", "style"=>"width:50%;", "class"=>"col-md-6", "text-before-range"=>'Extremely hungry', "text-after-range"=>'Not at all hungry'));
Agree Disagree
Others
Hidden Input Field
addElement ('hidden', $fieldname, $qn[$fieldname]);(move along, nothing to see here)
Static TextaddElement ('static', null, '<p style="font-weight: bold;">Insert <u>HTML/CSS</u> code here</p>');

Insert HTML/CSS code here