• Resolved Kresten Skovsted Buch

    (@krestensb)


    Hi,
    I need my user to enter an account number so I can transfer back a deposit.
    But users don’t allways write a correct account number. Therefor I would like to add a validation to the field in the booking form element.
    This could we done with a little bit of javascript and a call to an external API.
    How would that be possible to implement?

    BR Kresten

Viewing 1 replies (of 1 total)
  • Plugin Author wpdevelop

    (@wpdevelop)

    Hello.
    By default its does not possible in the Booking Calendar plugin.
    But if you want to make your own customization, relative to checking this data, you can do this in the ../{Booking Calendar Folder}/js/client.js file inside of this function:

    function mybooking_submit( submit_form , bk_type, wpdev_active_locale){

    You can check how system validate some of fields, like email, and add your own code for validation of your field.

    Disclaimer. Unfortunately we can not start, right now, some personal customization or custom development, because almost have no free time.
    Check more about new features here https://wpbookingcalendar.com/faq/need-new-feature/
    Thank you for understanding.
    Please note, if you will modify the source code of the Booking Calendar, we will not guaranteed the correct work of plugin and do not support it.

Viewing 1 replies (of 1 total)

The topic ‘Validating account numbers’ is closed to new replies.