Form widget - customization
Hi,
I want to handle button click of inbuilt form widget in sitefinity 4.4.
I want to custom the form control and handle the submit button functionlity by overriding OnFormSaved or any such events.
Is it possible to customise the form widget?
Please provide me some code/vedio or steps to do such customization.
Thanks & Regards,
Anu
Hi,
What you can do is inherit FormsControl and override the Submit_Click button event handler:
protected
virtual
void
Submit_Click(objectsender, EventArgs e)
this
.ProcessForm(
this
.FormData);
Here you can perform all of the logic that needs to be performed on FormSubmission.
Then you can register the new control in the toolbox and use it to load forms instead of the built-in one.