You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Getting ending screen ref before onEndingButtonClick #709
It seems onQuestionChanged callback gives the ref value for every type of screens except "welcome" and "ending" screens.
Problem
If we want to know which ending screen has been loaded, we must wait for the user to click on the "ending button" to trigger the onEndingButtonClick callback where we receive the ending screen's ref value. But the user may not click on the button (and at this point of the form, the user is not even required to click, the form has been submitted and saved).
Possible solutions
Could you trigger the onQuestionChanged callback when an ending screen is shown ?
Or include the endingRef in the onSubmit callback ?
Or add a new event onEnding, like that: onEnding({ formId, ref }) ?
Our context
Our web app, where typeforms are embedded, needs to know which ending screen is showing up to update background state, even if the user does not click on the "ending button". And at the moment the TF is filled, it cannot contact the Typeform API yet to get more informations on where the user ended.
Activity