Support » Plugin: Booking Calendar » Max numbers in field

  • Resolved wearecrunch

    (@wearecrunch)


    Hi,

    Is it possible to set the phonenumber field to validate if it is numbers that is written, and that it should only allow 8 digits?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author wpdevelop

    (@wpdevelop)

    Hello.
    Please check how to customize it here https://wpbookingcalendar.com/support/comment-page-9/#comment-16480

    Just instead of this code:
    var reg = /^\d{10}$/;
    you will be need to have this code in that customization:
    var reg = /^\d{8}$/;
    Kind Regards.

    Hi,ok great, thank you I will try that.

    But don’t I need to do it in functions.php or copy it to the child theme or something, so it will not be overwritten on updates?

    Thank you

    Plugin Author wpdevelop

    (@wpdevelop)

    Hello.
    Unfortunately, you are right its will be updated (overwriting with future update and you will be need to make this fix again).
    We will add this feature to the TODO list for having some workflow about this functionality in future updates of plugin.
    Thank you.

    Oh hmm ok I see, yes no problem. I hope it will be fixed then

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Max numbers in field’ is closed to new replies.