RequireQuestionType | R Documentation |
Helper function to use in Standard R items which require the user to select variables of a certain question type / variable set structure.
RequireQuestionType(variables, required.type, message.prefix, message.suffix)
variables |
A list containing the variables (or questions) to check. |
required.type |
A string indicating the required questiontype value. Should be one of: "PickAny", "PickOne", "PickOneMulti", "Number", "NumberMulti", "NumberGrid", "PickAnyGrid", "Text", "TextMulti", "Ranking", or "Experiment". |
message.prefix |
Text to display in the error message before the required question type / structure. |
message.suffix |
Text to display at the end of the message. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.