Populate Dropdown options from HTTP GET


Is it possible to dynamically populate dropdown options from the results of an HTTP GET?

IS answered
    IS 2.21K Rep.

    I think it can be done.

    On the first page of your survey you can create hidden value fields like:

    Number of options




    You can then use a script to perform the GET, parse it and use sgapisetvalue to set the values of the hidden fields

    On any page after the first you can pipe the values from Opt1, Opt2, etc into your answer options and use Logic on the option edit screen to choose whether to display the option based on the value of the Number of Options field.

    I have done something similar, but using URL variables instead of an HTTP GET.

    IS answered
      Lola Gill 6.99K Rep.

      The Webhook (HTTP Connect feature) can be used to pre-populate answers to survey question. I don’t believe it can be used to dynamically create answer options within a question.

      You might consider exploring the API for that:


      I hope this helps!

      Lola Gill answered


        Question stats

        • Active
        • Views4023 times
        • Answers2 answers
        • Followers1 follower