embed icon indicating copy to clipboard operation
embed copied to clipboard

Getting ending screen ref before onEndingButtonClick

Open jybleau opened this issue 4 months ago • 0 comments

Hi! Related to #584

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.

Tx

jybleau avatar Dec 08 '25 23:12 jybleau