Editing Form Field Condition with Python Jotform API

  • tfn
    Asked on February 18, 2015 at 5:45 PM

    I am having trouble trying to change a conditional with the python jotform api. I want to be able to change the option value that the condition is linked to by editing the value field and then calling the set_form_properties function. It is not working for me tho here is what i am using. Any help would be awesome thanks!

     

    r = str({u'index': u'0', u'terms': u'[{"field":"122","operator":"equals","value":"21615 - CAH Miami"}]', u'priority': u'0', u'link': u'Any', u'action': u'[{"field":"121","visibility":"Show"}]', u'type': u'field', u'id': u'1424287023498'})

     

    self.jotformAPIClient.set_form_properties(form_id, r)

  • Charlie
    Replied on February 18, 2015 at 9:03 PM

    Hi,

    Have you checked our API documentation here: http://api.jotform.com/docs/. Could you also share to us the link where you are using the API so that we can also debug and investigate it further?

    Thank you.

  • tfn
    Replied on February 18, 2015 at 9:27 PM

    Yes I have checked out the documentation. Its not letting me change the form condition properties and I want to know what I am doing wrong. Thanks

    https://github.com/jotform/jotform-api-python/blob/master/jotform.py

  • Charlie
    Replied on February 18, 2015 at 10:42 PM

    Hi,

    Thanks for sharing the code. We actually have an API team for this, you can contact them using this link: http://api.jotform.com/docs/#contact. At the same time, I will also create a support ticket so that your concern can be expedited.

    We will hear from them regarding your question or concern.

    Thank you.