Hi,
I’m experiencing exactly the same issue as described here, but with “is a valid phone number” this time.
It looks like there is a bug in the contact form builder. When choosing “is a valid number”, leaving the field empty seems to be considered as valid (please see the last field in my link: when trying to submit the empty form, the last field is green).
I don’t need a quick fix, just please fix it in the next update ;)
Thanks a lot :)
Hi MrNayals!
Thank you for using Enfold.
For a quick fix, please edit shortcodes.js. Find this code on line 2791:
if(!value.match(/^(\d|\s|\-|\/|\(|\)|\[|\]|e|x|t|ension|\.|\+|\_|\,|\:|\;)*$/))
Replace it with:
if(!value.match(/^(\d|\s|\-|\/|\(|\)|\[|\]|e|x|t|ension|\.|\+|\_|\,|\:|\;)*$/) || value == "")
I’ll ask Kriesi to take a look.
Best regards,
Ismael
It works well, thanks a lot ! :-)