B510
Posts: 0
Joined: Wed Jun 04, 2014 2:17 pm

how to validate DatePicker value?

Dear All,

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

please help

thanks

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

how to validate DatePicker value?

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

Return to “Issues”