Discrepancy between Logic jump in GUI and Typeform API request | Community
Skip to main content
Answered

Discrepancy between Logic jump in GUI and Typeform API request


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

Best answer by Liz

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. 

View original

4 replies

Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15035 replies
  • Answer
  • December 9, 2021

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. 


  • Navigating the Land
  • 1 reply
  • December 10, 2021

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


Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15035 replies
  • December 10, 2021

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


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • December 13, 2021

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