esmero / webform_strawberryfield

Provides Webform integrations to feed a field of Strawberries. Mr. Wizard of WebOz
GNU Lesser General Public License v3.0
2 stars 6 forks source link

Keep a WIP/Draft/partially filled Webform state around #43

Open DiegoPino opened 4 years ago

DiegoPino commented 4 years ago

What is this? Yet again another webform thing?

41 and #26 are all ready a little bit high on feature requests so wanted to move this feature to its own ISSUE.

The work i have on #41 allows an orphan Metadata edit session to be recovered if the user followed all the steps and pressed 'Save Metadata' (which will change to a different name) but did not press 'Save' on the Node form. Basically no new Node/ADO was created.

But what if the user goes away in the second step or the form is huge and the user wants time inbetween or wants to come back next day because the huge IMAGE never uploaded but feels not OK with creating the ADO anyway without an image/or because the system admin made the IMAGE upload required for that webform? So many uses cases! 🤣

Well i want to have a 'Save Draft' or 'Keep my progress around' button that triggers something different. It will just save whatever current state the form is in. So if some step is missing, that is Ok. This 'Keep my Progress around' can not generate a new Node until retaken and all steps are finished and we end again with either situation that #41 is dealing with or the node is saved. In both cases the WIP is deleted/purged.

How?

This requires two things to happen

Code

And will also allow, same as in #41 a button that when a temp is loaded, any of both, you can of course also always start fresh and avoid this values.

@giancarlobi mentioning you here so it does not look like i'm talking to myself (which i am hahahaa) Is my idea idea clear @mitchellkeaney?

mitchellkeaney commented 4 years ago

@DiegoPino the idea is clear (i think)! This will be creating a "Save Draft" button, in other words a way for a user to tell the system "I'm still working, but I want to save where I'm at so I can do something else", which sounds great to me. How does this logic differ from the current "Save Draft" section of Descriptive Metadata? Currently if a user saves their object as a draft, does a node still get created?