Answered

Discrepancy between Logic jump in GUI and Typeform API request

  • 9 December 2021
  • 4 replies
  • 57 views

Hi,

       I’ve created simple form submission with consist of Logic jump when user has type something in the form if

  • correct → then go to next page
  • incorrect → go back to input again

When I check the preview, everything seems working just fine. All logics work correct as expect. But when I use api request to https://api.typeform.com/forms/{formId} it seems not what I expect. The logic field is incorrect. Please see details below

here is logic portion, 

{
"logic": [
{
"type": "field",
"ref": "captcha",
"actions": [
{
"action": "jump",
"details": {
"to": {
"type": "field",
"value": "captcha_incorrect_loop"
}
},
"condition": {
"op": "always",
"vars": []
}
}
]
},
{
"type": "field",
"ref": "captcha_incorrect_loop",
"actions": [
{
"action": "jump",
"details": {
"to": {
"type": "field",
"value": "captcha"
}
},
"condition": {
"op": "always",
"vars": []
}
}
]
}
]
}

 

here is the GUI

 

Logic jump setup

What do I missed? Please clarify

Thank in advanced

Teerapat

icon

Best answer by Liz 9 December 2021, 17:08

View original

4 replies

Userlevel 7
Badge +5

Hi @Teerapat Happy Thursday! Have you published the changes to your form within the builder? If not, you won’t see these changes appear in the API calls. 

@Liz Yep the form had been published and has been republished. The discrepancy persists.

Userlevel 7
Badge +5

@mathio or @picsoung do either of you know what would cause something like this? 

Userlevel 7
Badge +5

Hello @oss can you please share your form ID so we can see the full form definition? Does your typeform work when you open it in browser (as respondent)?

Reply