Skip to Content
author's profile photo Former Member
Former Member

Validation of more than one control in a report

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jan 24, 2008 at 02:10 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.