PHP 7.1.9
CGBetterForms 1.9.9.1
question:
How to add the email, to which the form is sent?
error:
When "Display form inline" is set to true, I have this message:
Please specify a form name when calling CGBetterForms
When "Display form inline" is set to false, I have this message:
Could not find a field with name email in field list
I use localhost.
Template:
Code: Select all
{cgbf_form_errors assign='errors'}
{if !empty($errors)}
<ul class="error">
{foreach $errors as $err}
<li>{$err}</li>
{/foreach}
</ul>
{/if}
<form class="contact-form">
<label for="name">Name</label>
<input id="name" name="name" type="text" placeholder="Name">
<label for="phone">Phone</label>
<input id="phone" name="phone" type="text" placeholder="Phone">
<label for="mail">E-mail</label>
<input id="mail" name="mail" type="text" placeholder="E-mail">
<label for="comments">Message</label>
<textarea id="comments" type="text" name="comments" placeholder="Message"></textarea>
<div data-cgbf-captcha></div>
<div class="submit">
<button type="submit">Submit</button>
</div>
</form>



