More in this section

Forums / Developing with Sitefinity / Form widget - customization

Form widget - customization

2 posts, 0 answered
  1. Anu
    Anu avatar
    72 posts
    Registered:
    17 Jun 2010
    09 Feb 2012
    Link to this post
    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
  2. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    Registered:
    24 Sep 2012
    13 Feb 2012
    Link to this post
    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
2 posts, 0 answered