Change question values via API

  • TENZONA
    Asked on January 24, 2020 at 7:58 AM

    Hi,

    I recently started using Dual ListBox widget, and I want to change its Values (Option 1, Option 2, etc.) via API call.

    I am calling POST http://eu-api.jotform.com/form/92816321177357/question/39
    headers: APIKEY=XXX
    request: raw - application/json

    but I am not so sure about the content...
    Current value:"listboxItems": "Option 1\nOption 2\nOption X"
    But when I tried to put this into content:
    {
    "content": {
    "listboxItems": "Test 1\nTest 2\nTest X"
    }
    }
    nothing actually happened.

    Same for the Dymanic dropdowns widget.
    I just can't seem to get the right name of the fields which I need to edit I guess?

    The purpose is to keep my Form dynamic, if I edit list of my material in my database, I need it to pass the change to the form and add the new value.

    Could you please provide me the correct content to change its values?

    Many thanks,

    David

  • Girish JotForm Support
    Replied on January 24, 2020 at 9:03 AM

    I am not sure if that is possible for widgets. But please check here: http://api.jotform.com/docs/#post-form-id-question-id 

    If you need help with implementing it to your form, we advise contacting our API Team about it: http://api.jotform.com/docs/#contact OR email at api@jotform.com

  • TENZONA
    Replied on January 24, 2020 at 9:54 AM

    Hi, I did check your APIs, but I can not find anything about what I want to integrate, nor anything about widget fields..

    Guess I will try to contact your API team.

  • BJoanna
    Replied on January 24, 2020 at 11:35 AM

    Please contact our API team for API related questions.