Set question properties

lsSetQuestionProperties(
  questionID,
  lang,
  properties,
  lsAPIurl = getOption("lsAPIurl"),
  sessionKey = NULL
)

Arguments

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 lsGetSurveyProperties())

properties

A list with the particular field names as keys and their values to set on that particular question (see lsListQuestions() for available properties. Restricted properties are: qid, gid, sid, parent_qid, language, type, question_order in some condition (with dependencies).

lsAPIurl

(optional) The URL of the LimeSurvey RemoteControl 2 JSON-RPC API

sessionKey

(optional) Authentication token, see lsGetSessionKey()

Value

List of succeeded and failed modifications according to internal validation

References

https://api.limesurvey.org/classes/remotecontrol_handle.html#method_set_question_properties

See also

Examples

if (FALSE) { lsSetQuestionProperties(questionID = 10, lang = "fr", properties = list(question = "Âge")) lsSetQuestionProperties(10, "de", properties = list(question = "Alter")) }