Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Updating dropdown answers via RemoteControl 2 API (JSON-RPC)

More
1 day 11 minutes ago #273834 by IJsselgemeenten
Please help us help you and fill where relevant:
Your LimeSurvey version: Cloud Version 6.16.9
Own server or LimeSurvey hosting: Limesurvey Hosting
Survey theme/template: Fruity TwentyThree
==================Hi everyone,I am trying to automate updating of surveys using the LimeSurvey RemoteControl 2 API (JSON-RPC). Specifically, I want to populate the choices for a dropdown question automatically, because the list of options comes from an external program and we don’t want to update it manually every day or week.I noticed there isn’t a method like
Code:
add_answer
in the API.Is it possible to programmatically add or update answer options for an existing question via the RemoteControl API? If not, would the only options be:
  • importing a question via
    Code:
    import_question
    with a
    Code:
    .lsq
    file, or
  • manually updating the choices in the LimeSurvey UI?
Any guidance or examples would be greatly appreciated!Thanks in advance.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose