Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mid-journey save and exit #1276

Open
jenbutongit opened this issue Jun 21, 2024 · 0 comments
Open

Mid-journey save and exit #1276

jenbutongit opened this issue Jun 21, 2024 · 0 comments

Comments

@jenbutongit
Copy link
Contributor

jenbutongit commented Jun 21, 2024

At the moment, it is possible to add sessions to the form builder. It is not currently possible for a user to exit.

To implement this, we need to

  • Add a configuration object to the JSON to allow for exits, and where to send data to
    {
     exit: {
       url: "..",
       redirectUrl: "" // optional, where to redirect the user to,
       confirmation: {
         title: ".." // optional (defaults to Your application to <form name> has been saved)
         body: ".." // optional 
       },
     }
    }
    
  • Add a route GET /{formId}/exit/email (displays email address field)
  • Add a route for POST /{formId}/exit/email (validates email address field)
  • Add a route for GET /{formId}/exit/status (displays confirmation message, or error message)
Screen.Recording.2024-06-18.at.18.43.24.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant