• Resolved kopr

    (@kopernikus)


    Hi,

    I have an issue regarding configuration of booking form in free version of booking calendar, it seems that I’m unable to delete or edit the ’email’ field except changing the label. I’m aware of free version limitation, and I think it’s enough to provide a simple functioning form, but I really need to make this email field a required one and I can’t find any workaround to achieve that. Hope you can provide me a solution.

    Cheers.

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

    (@wpdevelop)

    Hello.
    Its known issue in the update 7.0
    Its will be fixed in next update of plugin.

    Currently, in the Booking Calendar Free version, you can make this small fix for having ability to set email field as required filed in the booking form at front-end side.

    Please open this file ../booking/core/admin/page-form-free.php
    ( you can check how to edit files in WordPress menu in this article https://wpbookingcalendar.com/faq/how-edit-file-in-wp-menu/ )

    then find this code:

    
                        if ( $form_field['type'] == 'email' )
                            $my_form.='   <input type="text" name="'. $form_field['name'] . $my_boook_type.'" id="'. $form_field['name'] . $my_boook_type.'" class="input-xlarge wpdev-validates-as-email'
                                            . ( ( $form_field['required'] == 'On' ) ? ' wpdev-validates-as-required' : '' ) 
                                          .'" />';
    
    

    and replace it to this code:

    
                        if ( $form_field['type'] == 'email' )
                            $my_form.='   <input type="text" name="'. $form_field['name'] . $my_boook_type.'" id="'. $form_field['name'] . $my_boook_type.'" class="input-xlarge wpdev-validates-as-email'
                                            . ( ( $form_field['required'] == 'On' ) ? ' wpdev-validates-as-required' : '' ) 
                                            . ' wpdev-validates-as-required'        //FixIn: 7.0.1.22
                                          .'" />';
    

    Then make a testing at front-end side of website. The email field will be required.
    Kind Regards.

    Thread Starter kopr

    (@kopernikus)

    It does work! Thanks for the solution.. What an amazing support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Email Field Form (Free Version)’ is closed to new replies.