• Resolved roset3

    (@roset3)


    Hey Howdy

    I have free lite version.

    Form contain: name, email, phone, subject. It is ok.
    But i need to add – one – custom “select” field. Without contact form integration.

    i found code in “class_wbk_ajax_controller.php.

    rows (for name):

    …$html .= ‘<label class=”wbk-input-label” for=”wbk-customer_name”>’ .$name_label . ‘</label>’;
    $html .= ‘<input name=”wbk-name” type=”text” autocomplete=”disabled” class=”wbk-input wbk-width-100 wbk-mb-10″ id=”wbk-customer_name” />’;

    The code (in docu) not working, because this code for contact form 7.

    ((((<p><label for=”custom-field3″>Custom field 3</label>[checkbox custom-field3 class:wbk-checkbox-custom id:custom-field3 “option1” “option2” ]</p>)))

    How can i add selectable options to PHP file without contact form7?

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Webba Appointment Booking

    (@webba-agency)

    Hello,

    Sorry, but adding custom fields by adding custom PHP code will not work. Because, our plugin only recognize custom fields of CF7.

    Thread Starter roset3

    (@roset3)

    Thank you, i understand.

    But i have a problem with contact form7.

    i try webba using with form 7.
    But webba window show (after i select date, and fill form): “Book” (button).
    Contact form 7 button ist “Submit”.
    So if i use webba with contact form7, then the final step (book), ist not correct.
    How can i change form 7 “submit” button to webba form “book” button?

    Thank you

    Plugin Author Webba Appointment Booking

    (@webba-agency)

    Could you please send me the code of your CF7 form?

    Thread Starter roset3

    (@roset3)

    Thank you!

    <label> Név
        [text* your-name] </label>
    
    <label> E-mail cím
        [email* your-email] </label>
    
    <label> Tárgy
        [text* your-subject] </label>
    
    <label> Üzenet (nem kötelező)
        [textarea your-message] </label>
    
    [submit "Beküldés"]
    Plugin Author Webba Appointment Booking

    (@webba-agency)

    Hello,

    Please, use the following code for your form:

    <p><label for="wbk-name">Név</label>[text* wbk-name class:wbk-text id:wbk-name]</p>
    <p><label for="wbk-email">E-mail cím</label>[text* wbk-email class:wbk-text id:wbk-email]</p>
    <p><label for="custom-field1">Tárgy</label>[text* custom-field1 class:wbk-text  id:custom-field1] </p>
    <p><label for="wbk-comment">Üzenet (nem kötelező)</label>[textarea wbk-comment class:wbk-textarea id:wbk-comment]</p>

    Also, please open the User interface tab of the Webba settings page and set the option Phone field is mandatory to ‘No’.

    Thread Starter roset3

    (@roset3)

    Thank you for help !

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Add Custom Fields Without External Form’ is closed to new replies.