cancel
Showing results for 
Search instead for 
Did you mean: 

Validation of more than one control in a report

Former Member
0 Kudos

Hi,

I have two textboxes and submit buttons in my report.One is for Name Search and another one for submitting. If the user doesnt know the name he can enter a part of the name and redirect to a search page.Otherwise if he knows the name,he can enter the name in the second textbox and submit to redirect to another page.

I have separate validations for both these textboxes. For the search textbox , the number of characters in the name should be greater than two.For the submit texbox,i can have maximum of 3 names.

Now, the problem is whenever i click search or submit button,the validation for both the textboxes are fired regardless of whichever button i click even though i have separate builder function for both these controls.

Is there any way to limit the validation of the textboxes to the clicking of the respective submit buttons?

If anyone came accross the same or similar problem before then please let me know if there is any solution or any alternative way to do it.

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

JWiseman
Active Contributor
0 Kudos

hello,

you can only build one "form" per page in a crystal report as the webuilder function will gather everything on the page.

if you try to build two forms on one page when you press the submit button validation will be done on the entire page.

i would recommend that you create 2 reports, one for the search, and one for the submit...i.e. if the end user doesn't know the name, have a link to direct them to a "search" report. this way you will not have any validation issues.

jw

Answers (0)