Rank: Newbie Groups: Member
Joined: 10/24/2007 Posts: 1
|
RequiredFieldValidator does not work when I set DisableTextBox="true" in datepicker. If it`s set to false it`ll work fine.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, RequiredFieldValidator works with a text box. When DisabledtextBox = "true", there is no text box. So it won't work. You can validate it on the server side or add your own JavaScript code to validate it. Inside your own JavaScript code, you can do:
Code: JavaScript
if (eo_GetObject('DatePicker1').getSelectedDate() != null)
//input is valid
else
//input is invalid
Thanks
|