- Posts: 12
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
method = "get_question_properties" api.query(method=method, params=OrderedDict([ ("sSessionKey", api.session_key), ("iQuestionID", '12345') ]))
QuestionID_SubquestionID_0
/**
* Get properties of a question in a survey.
*
* @see \Question for available properties.
* Some more properties are available_answers, subquestions, attributes, attributes_lang, answeroptions, defaultvalue
*
* @access public
* @param string $sSessionKey Auth credentials
* @param int $iQuestionID ID of the question to get properties
* @param array $aQuestionSettings (optional) properties to get, default to all
* @param string $sLanguage (optional) parameter language for multilingual questions, default are \Survey->language
* @return array The requested values
*/
api.query(method=method, params=OrderedDict([ ("sSessionKey", api.session_key), ("iQuestionID", '36849'), ("aQuestionSettings", ['answeroptions', 'scale_id']) ]))
{'answeroptions': 'No available answer options', 'scale_id': '0'}
holch wrote:
Wait, what is the LS version you are using?
bugs.limesurvey.org/view.php?id=13312