# My .NET validator does not trigger the validation error message

**URL:** <https://discuss.workflowgen.com/t/my-net-validator-does-not-trigger-the-validation-error-message/354>\
**Category:** Process Design\
**Created:** [November 11, 2008, 8:11am UTC](https://discuss.workflowgen.com/t/my-net-validator-does-not-trigger-the-validation-error-message/354 "2008-11-11T08:11:00Z")\
**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:** [November 11, 2008, 8:11am UTC](https://discuss.workflowgen.com/t/my-net-validator-does-not-trigger-the-validation-error-message/354/1 "2008-11-11T08:11:00Z")

</div>

**Issue**

My .NET validator does not trigger the validation error message even if I have set the `ValidationGroup` to `WFGENPage`.

**Background**

WorkflowGen’s `WFGENPage` validation group handles the validation of fields specified in the `FORM_FIELDS_REQUIRED` parameter.

You can add additional .NET validation controls and associate the validation result to `WFGENPage` in order to consolidate all error messages when the submit button is clicked and the form is submitted to the WorkflowGen engine.

**Solution**

You must have the `FORM_FIELDS_REQUIRED` parameter in your action with a valid field ID or the `FieldDataType` extended attribute applied to a .NET control within your web form. The WorkflowGen engine will generate the JavaScript to show the required field validation error only if it is needed,

If `FORM_FIELDS_REQUIRED` does not contain a valid field specified in the parameter or `FieldDataType` is not used within your web form(s), `WFGENPage` will not create the JavaScript for the error message dialog box. As such, your .NET validation will still validate, but it will not trigger the error message window.

If your form does not have a standard .NET control that needs to be required, or no .NET control using the `FieldDataType` attribute, you can add any invisible or inactive .NET control to use for this purpose. This will ensure that `WFGENPage` triggers the error message box.
