Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    On the page where the form submits, add the shortcode:

    [cfdb-save-form-post]

    Thread Starter Alex-studio

    (@crizis92)

    Thank you!
    but when I add it in code – and it display on the page, form is in the header of site

    <form id=”hotels” action=”https://site.com/wp-content/themes/site/mail.php&#8221; method=”post” enctype=”multipart/form-data” >
    <input type=”hidden” name=”form_title” value=”People”/>
    Name: <input type=”text” name=”fname” value=”” required=”required” >
    Second name: <input type=”text” name=”lname” value=”” required=”required” >
    <select size=”3″ name=”hero” required=”required” >
    <option disabled>Выберите Клинику отеля</option>
    <option value=”[email protected]” selected>main</option>
    <option value=”[email protected]”>Site do</option>
    </select>

    [cfdb-save-form-post]
    <input type=”submit” />

    </form >

    My form and I insert the Short code – right? Not work

    Thread Starter Alex-studio

    (@crizis92)

    this shortcode just displayed on the page between form fields

    Plugin Author Michael Simpson

    (@msimpson)

    The form posts to https://site.com/wp-content/themes/site/mail.php. That is where the short code would go. Or make a call to WP function do_shortcode() in the PHP code on that page.

    Thread Starter Alex-studio

    (@crizis92)

    Now it’s all work, i move mail php code to the same page with form and do shortcode – Thank you for you time!

    o, I make form on CF7 (Another form) And what to do next – in select box choose option like [someshortcode first mail|[email protected] second mail|[email protected] ] and in mail template insert [someshortcode] in field TO – and it catch in DB but sending never end, and don`t send to Mail – how to fix That ?

    Plugin Author Michael Simpson

    (@msimpson)

    CF7 sends the email, CFDB does not.

    Temporarily disable CFDB and try a form submission. If you receive the email now, then it is possible that CFDB is causing a problem. If you still do not receive the email, then the problem is not related to CFDB.

    Thread Starter Alex-studio

    (@crizis92)

    Thank you! I will try this way !

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to use with Custom form’ is closed to new replies.