CGBetterForms questions + errors

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
User avatar
Cyc
Forum Members
Forum Members
Posts: 91
Joined: Wed Nov 18, 2015 11:54 pm

CGBetterForms questions + errors

Post by Cyc »

CMS 2.2.10
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>
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1825
Joined: Wed Feb 25, 2009 4:25 am

Re: CGBetterForms questions + errors

Post by DIGI3 »

I think it needs to find a type="email" field in order for any of the email functionality to work.
Not getting the answer you need? CMSMS support options
User avatar
Cyc
Forum Members
Forum Members
Posts: 91
Joined: Wed Nov 18, 2015 11:54 pm

Re: CGBetterForms questions + errors

Post by Cyc »

Do I have to add input type email for sending form to my admin email?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CGBetterForms questions + errors

Post by calguy1000 »

if you want to send the results via email to certain addresses you add a handler that will send the email and specify that address and the format for that email

i.e: "Email results to specified addresses".
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Cyc
Forum Members
Forum Members
Posts: 91
Joined: Wed Nov 18, 2015 11:54 pm

Re: CGBetterForms questions + errors

Post by Cyc »

Ok, I resolved the problem. SPAM :(
Locked

Return to “Modules/Add-Ons”