cancel
Showing results for 
Search instead for 
Did you mean: 

Client Validation in common.js

dev
Champ in-the-making
Champ in-the-making
I am trying to do some client side validations for my d:date field by editing the onCustomValidation function in the common.js.
However, the function does not seem to get called when there is a change in the d:date field. But it works for the d:text field.
Is there any way in which we can make the function to be called when there is a change in the d:date field?

Please help.

Thanks In Advance
1 REPLY 1

deko
Star Contributor
Star Contributor
Hi Dev,

The Workdesk validation mechanism is not working for date fields, as date fields are overlayed with an Ajax framework date picker component (Sencha ExtJS 3.4.1) which has its own validation mechanisms defined. See also the extjs folder under workdesk/js. If you´d like to change that please see the related documentation:

http://docs.sencha.com/extjs/3.4.0/

Maybe you can find a way to overwrite the DatePicker validation there and introduce it to your deployment.

Best regards,
deko