Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #334319

    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 :)

    #334777

    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

    #335137

    It works well, thanks a lot ! :-)

    #335739

    Hey!
    thanks, will add it to the next update ;)
    Best regards,
    Kriesi

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Contact form: bug with "is a valid phone number"’ is closed to new replies.