Customize Save Draft Functionality #5436
Unanswered
Dev-Trilok
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@travist @randallknutson
Hi everyone! 👋 I'm relatively new to coding and currently working on a Dot.Net MVC project where I've integrated the Formio JS library. In our project, we format submissions with key-value pairs and component types on the client side, aligning with the class structure we have in DotNet. We use jQuery AJAX to post the formatted data while saving.
Now, we're looking to implement a save draft functionality, and I'm reaching out to the Formio community for guidance. Specifically, I'm wondering if it's possible to override the saveDraft() and restoreDraft() methods in Formio JS or if there are events that I can leverage for this purpose.
Our goal is to customize the save draft functionality to directly save the JSON data in a table and retrieve it when reopening the form based on some condition. I also need to pass some extra parameters with these calls.
If anyone has experience with this or can provide insights on how to achieve this customization, I would greatly appreciate your help! Thanks in advance. 🙏
Beta Was this translation helpful? Give feedback.
All reactions