« Calculation problem when using the VBScript “Now” function in conjunction with the “DateDiff” function within a condition. | Main | After changing the user name of a user in Active Directory, the user is unable to log in to WorkflowGen and receives the following security error… “You are not authorized to view this page”. »
Monday
Nov102008

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

Issue

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

Background

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

We can add additional .NET validation controls and associate the validation result to 'WFGENPage' so that we can 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. Hence, 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.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.
Member Account Required
You must have a member account on this website in order to post comments. Log in to your account to enable posting.