# How to manually handle form submission

**URL:** <https://discuss.workflowgen.com/t/how-to-manually-handle-form-submission/285>\
**Category:** Form Designer\
**Created:** [May 14, 2015, 2:15am UTC](https://discuss.workflowgen.com/t/how-to-manually-handle-form-submission/285 "2015-05-14T02:15:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [May 14, 2015, 2:15am UTC](https://discuss.workflowgen.com/t/how-to-manually-handle-form-submission/285/1 "2015-05-14T02:15:26Z")

</div>

There may be cases where you want to customize the **Submit** button behaviour, for example to add custom validation. To do this:

1. In the page’s **OnPreLoad** event, specify that WorkflowGen is NOT to handle the submit:

2. While this prevents WorkflowGen from initializing the **ValidationGroup** property of the **Submit** button, the workaround is to initialize it manually in the same page event. The default value is “WFGENPage”:

3. Create a custom method to assign to the button in the **OnPreLoad** event.

**Note:** Make sure to call the web form’s **base.OnPreLoad()** event, which is managed by [WorkflowGen.My](http://WorkflowGen.My).
