Solved

Problems with required field validator

Posted on 2006-10-20
3
185 Views
Last Modified: 2012-05-05
Hi:
    I have a required field validator to validate a textbox on a web form. When the page loads the textbox is defaulted to todays date. If i delete the date the required field validator fires correctly and pops up a message saying "Please enter a date". If I manually enter a date in the correct format the required field validators disappears which is right. Now I also have a date picker which inputs the selected date into the textbox. However if i delete the date in the textbox and select the date from the date picker the required field validator message stays there when it should actually disappear since I have chosen a date from the date picker.

Any help would be appreciated.
Thanks,
Aditya
0
Comment
Question by:lyptus
3 Comments
 
LVL 41

Accepted Solution

by:
HonorGod earned 500 total points
ID: 17781752
Ah, the question is then:

  How does the "date picker" update the textbox?

From the description, it sounds like it is not using a pure assignment (i.e., txtbox.value = datePicker() ).
I would check how the datePicker is attempting to update the texbox, and have it be a pure assigment.
Be careful though.  If the user cancels out of the datePicker routine/mechanism, you want to leave the
"Please enter a date" message alone
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question