Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible to prioritize validators?  RSS feed

 
miceagol miceagol
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two validators for one input field:


But the "convertDateTime"-validator always runs first, even when the "validateLength"-validator is placed first. Is it possible to prioritize them, or can the above be done in another way?

I need the first validator because "convertDateTime" converts the date dd.MM.yy to dd.MM.00yy, and I don't want that. Any inputs on another way to avoid this issue?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!