Hello,
We want to save content of text field in formdata with click a button, we tried solution at How to modify any form data fields in .Net Web form
How is it possible to update value directly in formdata content, this properties are just read only.
protected void DEMANDE_BOUTON1_Click(object sender, EventArgs e) {
DEMANDE_DESCRIPTION.Text += "test1 \n";
SaveFormData(this.FormData);
this.BindFormDataToFields(this.FormData);
}
We need to implement this to allow a saving without click on sending button.*
Thanks,
Regards
Hello,
To complete my previous question, is it possible to execute form_draft code button without completing action ?
When we want to save form_data, if is it possible we want to execute saving code.
Thanks,
Regards
Hi,
in your sample code, you update the field DEMANDE_DESCRIPTION but you are not saving it to the FormData yet.
You need to call SaveFieldsData(FormData) to capture the updated value in DEMANDE_DESCRIPTION before calling SaveFormData.
Or you can update update FormData dataset directly. So it could be like:
DEMANDE_DESCRIPTION.Text += “test1 \n”;
FormData.Tables[0].Rows[0][“DEMANDE_DESCRIPTION”] += “test1 \n”;
SaveFormData(this.FormData);
Hello Kevin,
Thanks for your aswer.
We tried your solution, but we had same results, no save after closing.
This is a specific use case :
- User write data in specific field
- He left form without saving
So we want to save in FormData without using sending or draft buttons, but presently the current formdata isn’t overwrite.
Hi Quentin,
If I understand your use case correctly, you want to save the form without any WorkflowGen submission.
If this is the case I don’t think it is possible unless you build some kind of mechanism to store your form data somewhere.
WFG needs the action submission (submit or save as draft) in order to pass the current form data back to WFG backend so that when next action start it can retrieve the form data from previous action
Hi,
If I understand your use case correctly, you want to save the form without any WorkflowGen submission.
Yes that’s it, it’s a twisted case.
Howewer, it could be an evolution perspective for workflowgen.
Thank’s for your help.
Hello Quentin,
I allow myself to ask you if you managed to solve this problem. I’m trying to save my data without submitting when I click on a button.
Thank you,
Noémie