Closed patdunlavey closed 3 years ago
@patdunlavey if you have the time, this is not too complex. Requires some Ajax to make it work but can also be a simple re-load if Ajax is not desired.
Here is an example (not the only place, we have two widgets) where the session is used.
The idea is to add an extra button by the message that allows the Widget Form to be reloaded with that temp Store cleaned up (Ajax call would do that). On Form rebuild the Webform won't have the previous session anymore.
@patdunlavey @dmer @alliomeria. I will take this one since there is a little bit (lot) to modify. But I have a question. You want to clear the saved progress or stash it? stash means = do not use it but keep it. I feel clearing is simpler so I would recommend that route but want to be sure you are OK with that. Thanks!
@DiegoPino I vote strongly for just clear it - stashing feels like it introduces potential for confusion, more admin, etc.
@dmer @patdunlavey this should be ready by tomorrow afternoon. I will need some "UI" feedback but the logic itself won't be a problem. Will let you all know. Thanks
From @dmer : "I’ve had this experience a few times where I had abandoned a new object without saving and then later attempting to make a new object and finding some of the values I’d previously entered - I know this is the “draft” saving which I love since it will certainly save work from being lost. I’m just wondering how those values are persisted and if I can somehow clear them if I want to."