You simply cannot do that. data-parsley-required
option have a specific API and must handle booleans.
If this is the error message that bothers you, please use data-parsley-error-message
or data-parsley-required-error-message
. You could find more info about these options here: http://parsleyjs.org/doc/index.html#psly-ui-for-field
Best