In sitecore I have created a Sitecore form in Sitecore FormBuilder and saved it as template. I have added default Workflow in Form Template standard value.
I have published this Form saved as template and so it is in published state now(Initially it was in draft state).
The issue faced is:
Whenever I create a new Form in Sitecore FormBuilder based on this template, it also inherits the published workflow state. The requirement is whenever a new form is created it should be in draft state of the default workflow. Please suggest to make this change.
I tried by adding a handler in the OnVersionAdded and OnItemCreating but, the EventArgs does not pick the current form id it picks something named system with different id.