I have a requirement to save/hold the workflow form data, generally I am seeing that whenever the form is updated with selections without submitting and if we reopen that form again the data is getting wiped out, here in this case, I need to hold them without getting wiped out.
You can’t do this. You must store the form data into the WorkflowCase, which only happens on submit. Otherwise, it’s transient in HTTP session backed memory. When you exit the work item via a cancel button or by closing the tab, that memory is just wiped.
What’s your actual requirement here? Like the business use case? Do you need someone to be able to back out of the work item, and then come back to it later?
If so, there are probably some ways. For example, you could use a ‘back’ type button, which still counts as submitting the form. Then, have that route to a step with a “wait”, then loop back to the form step again. The same user would then get the work item back in their list and can come back to it later.