My use case:
I have a Typeform that needs to validate a field using a third-party API. The user fills the field and keep going, and a few questions later, Typeform selects the correct branch based on the result obtained by the API while the user was filling the rest of the form.
I have a TypeForm Business Plan, so using Google Tag Manager to load a small JS script, I was able to get the answer to the question, send it to the API to make the check and get the result. I was thinking to use a hidden field so that Typeform selects the correct path.
Yet, I can not update the value of a hidden field.
I have seen this page, with the section "Pass hidden field values", but it only works when creating the form
I have also tried the transitiveSearchParams option, to load them from the hosted page. But again, it seems it only loads them once.
I have tried to modify the window.location.hash to update the value of the hidden fields, but TypeForm does not consider the new value, so I guess the hidden parameters values shall be stored somewhere, but I have been unable to find how to update them.
Best answer by jeremielpView original