Guillaume Potier, the author of parsley, added the ParsleyUI.getErrorsMessages(parsleyFieldInstance) method, which will return an array of message errors. It is available on the main branch on github and will be released in the next stable version.
This works fine for me, and this is my sample code:
window.Parsley.on('field:error', function (fieldInstance) { fieldInstance.$element.popover({ trigger: 'manual', container: 'body', placement: 'right', content: function () { return fieldInstance.getErrorsMessages().join(';'); } }).popover('show'); }); window.Parsley.on('field:success', function (fieldInstance) { fieldInstance.$element.popover('destroy'); });
source share