Page 1 of 1

how to validate DatePicker value?

Posted: Tue Apr 28, 2015 3:03 am
by B510

Dear All,

Since DatePicker component is editable then How to validate DatePicker value is correct date format?

please help

thanks


how to validate DatePicker value?

Posted: Tue Apr 28, 2015 3:26 am
by Bruce Stuart

Perhaps - on value change - log the value to the console to see the format as you've set it ?

console.log(' The value in the datepicker control is: ' + Appery('YourDatePickercontrolName').val() );

or - set a breakpoint and use the console to ask the application such questions? (you need to move your console logging above to a function inside a new javascript - and call it from the value Change event to do so.... that's a 'best practice' - using it though will drastically reduce your time to fix on almost any problem...)....

best,

Bruce


how to validate DatePicker value?

Posted: Tue Apr 28, 2015 6:07 am
by Serhii Kulibaba