Skip to content

Getting ending screen ref before onEndingButtonClick #709

@jybleau

Description

@jybleau

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    newFlag for new issues before someone replies

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions