central
central copied to clipboard
Allow a user to fill out another instance after submitting a Web Form
User story
As the developer of a host application, I want the option to request preparing a new instance for form filling after a user has made a submission So that I can support a workflow that requires filling a form multiple times
As a form end user, I want the option to immediately fill out another instance of the active form after submitting So that I can quickly carry out my next task
Design
- Once the user sends the form, they will be presented with a dialog that allows them to
- fill out another form, which takes them to a fresh form
- or they can close the browser tab because they are done
- Use Central's new dialog, but remove the grey at the bottom so it's more consistent with Web Forms.
Notes
- This is the current behavior from Central when accessing form filling from Submissions > New
- This needs to be opt-in -- there are many cases in which the host application will want to redirect or do something else after submission
- Preparing a new instance involves resetting all values to defaults, triggering all preloads, and triggering
odk-instance-first-load.
@lognaturel I met with Nicole to chat about reusing the dialog. I think we may want to consider other ideas or full page experiences further down the road when we allow custom messages, but for now this works perfectly.
I've added some copy. If you have another suggestions please add comments in figma. When everyone is happy with the language, this is good to go!
Backend message on button is visible
Tested with Success!