addrequirements
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| addrequirements [2024/02/25 12:24] – admin | addrequirements [2024/02/25 12:32] (current) – [CSS] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== addRequirements - Automatically format force response, request response, or optional questions | ====== addRequirements - Automatically format force response, request response, or optional questions | ||
| - | The addRequirements adds CSS classes to questions to specify if they are force response, request response, or optional. The classes can be used to format or add text to the questions. The classes are automatically added to all answerable questions in the survey - just add the function call the the survey header and some custom CSS and you're done! | + | The addRequirements adds CSS classes to questions to specify if they are force response, request response, or optional. The classes can be used to format or add text to the questions. The classes are automatically added to all answerable questions in the survey - just add the function call to the survey header and some custom CSS and you're done! |
| Since constant sum questions don't have a force response option, they are considered to be forced if 'Must Total' is greater than zero. | Since constant sum questions don't have a force response option, they are considered to be forced if 'Must Total' is greater than zero. | ||
| Line 23: | Line 23: | ||
| </ | </ | ||
| ===== Turn off/on ===== | ===== Turn off/on ===== | ||
| - | By default, addRequirements applies to all answerable questions in a survey. To turn addRequirements off for a block or block of question, set the embedded data field ' | + | By default, addRequirements applies to all answerable questions in a survey. To turn addRequirements off for a block or blocks |
| ===== CSS ===== | ===== CSS ===== | ||
| Use the CSS classes **force**, **request**, | Use the CSS classes **force**, **request**, | ||
| < | < | ||
| - | /* Force response - asterisk before question text*/ | + | /*Force response - asterisk before question text*/ |
| .force .QuestionText:: | .force .QuestionText:: | ||
| - | // Optional response - optional label after question text*/ | + | /*Optional response - optional label after question text*/ |
| .optional .QuestionText:: | .optional .QuestionText:: | ||
| content:" | content:" | ||
addrequirements.1708881848.txt.gz · Last modified: by admin
