Great plugin – however I’ve already hit an issue.
When adding a custom Regex Validation and applying it to a Gravity Form Post Field – Body. The validation triggers in error if you add multiple lines of text. I.E if hit the return key to add a new line.
As an example if you create a Regex Validation using the following simple code:
/^((?!badword).)*$/i ( this should throw a warning if you type “badword” – it works but a false positive if you add line breaks).
Then add the class to the Post Body field in your Gravity Form.
Then test front-end – add some random text, hit return and add some more – the validation triggers even if you don’t type “badword”.
What can I do to resolve this validation error on multiline form fields?
Many Thanks