Form widget - customization

Posted by Community Admin on 04-Aug-2018 06:32

Form widget - customization

All Replies

Posted by Community Admin on 09-Feb-2012 00:00

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

Posted by Community Admin on 13-Feb-2012 00:00

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.

Regards,
Svetoslav Petsov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed