Set question properties
lsSetQuestionProperties( questionID, lang, properties, lsAPIurl = getOption("lsAPIurl"), sessionKey = NULL )
questionID | The question ID (which is unique for all surveys, so no survey ID is required here) -- not to be confused with the question code |
---|---|
lang | Language code for the survey language (Note: The API expects
one of the survey languages as part of the request rather than falling back to
the default language of the survey. However, you can look up that default
language using |
properties | A list with the particular field names as keys and their values to set on that particular question
(see |
lsAPIurl | (optional) The URL of the LimeSurvey RemoteControl 2 JSON-RPC API |
sessionKey | (optional) Authentication token, see |
List of succeeded and failed modifications according to internal validation
https://api.limesurvey.org/classes/remotecontrol_handle.html#method_set_question_properties
if (FALSE) { lsSetQuestionProperties(questionID = 10, lang = "fr", properties = list(question = "Âge")) lsSetQuestionProperties(10, "de", properties = list(question = "Alter")) }