central icon indicating copy to clipboard operation
central copied to clipboard

Allow a user to fill out another instance after submitting a Web Form

Open alyblenkin opened this issue 8 months ago • 1 comments

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.

Figma link

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.

alyblenkin avatar Mar 19 '25 19:03 alyblenkin

@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!

alyblenkin avatar Mar 21 '25 22:03 alyblenkin

Backend message on button is visible Image

srujner avatar Apr 18 '25 11:04 srujner

Tested with Success!

srujner avatar Apr 23 '25 09:04 srujner