You are right for data-parsley-validate-if-empty
if you remove required
validator, along with your custom one.
But look at this extra validator defined here: https://github.com/guillaumepotier/Parsley.js/blob/master/src/extra/validator/dateiso.js
or this doc here: http://parsleyjs.org/doc/index.html#psly-validators-craft
You have the wrong syntax for your validator, the validation function must be in a fn
key and a priority defined. That way it should work.
Best