Answers.Body: <p>Re-installing the Sprout Invisible Captcha plugin and including the following line before the closing tag got it working:</p>
  
  <pre><code>{{ craft.sproutInvisibleCaptcha.protect() }}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-08T09:23:02.977Z
Answers.LastActivityDate: 2015-12-08T09:23:02.977Z
Answers.UserDisplayName: Steve Rowland
Body: <p>We have a Sprout Forms form being used for gated content access. The form appears to work correctly but none of the entries are appearing in the database/CMS.</p>
  
  <p>Here is an example URL with the form: <a href="http://thisisbeyond.co.uk/blog/feel-good-brands-report-2015/" rel="nofollow noreferrer">http://thisisbeyond.co.uk/blog/feel-good-brands-report-2015/</a></p>
  
  <p>Below is a CMS screenshot of the form settings.<a href="https://i.sstatic.net/HwBnk.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/HwBnk.png" alt="enter image description here"></a></p>
  
  <p>Below is the template code we are using to generate the form:</p>
  
  <pre><code>{% if craft.request.getParam('message') == 'success' %}
  
  &lt;div class="alert alert-success" role="alert"&gt;Thank you for your message, we'll get back to you as soon as possible.&lt;/div&gt;
  
  {% else %}
  
  {% macro errorList(errors) %}
  {% if errors %}
  {% for error in errors %}
  &lt;span class="label label-alert"&gt;{{ error }}&lt;/span&gt;
  {% endfor %}
  {% endif %}
  {% endmacro %}
  
  {% from _self import errorList %}
  
  &lt;form method="post" action="" accept-charset="UTF-8"&gt;
  {{ getCsrfInput() }}
  &lt;input type="hidden" name="action" value="sproutForms/entries/saveEntry"&gt;
  &lt;input type="hidden" name="handle" value="gatedForm"&gt;
  {% set gated = entry.gatedDocument.first() %}
  &lt;input type="hidden" name="redirect" value="{{ gated.url }}"&gt;
  
  &lt;div class="form-group"&gt;
      &lt;label for="fields-fullName"&gt;Full Name *&lt;/label&gt;
      &lt;input type="text" name="fields[fullName]" id="fields-fullName" class="form-control" value="{% if gatedForm.fullName is defined %}{{ gatedForm.fullName }}{% endif %}" required/&gt;
      {% if gatedForm is defined %}{{ errorList(gatedForm.getErrors('fullName')) }}{% endif %}
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
      &lt;label for="fields-companyName"&gt;Company Name *&lt;/label&gt;
      &lt;input type="text" name="fields[companyName]" id="fields-companyName" class="form-control" value="{% if gatedForm.companyName is defined %}{{ gatedForm.companyName }}{% endif %}" required/&gt;
      {% if gatedForm is defined %}{{ errorList(gatedForm.getErrors('companyName')) }}{% endif %}
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
      &lt;label for="fields-email"&gt;Email *&lt;/label&gt;
      &lt;input type="text" name="fields[email]" id="fields-email" class="form-control" value="{% if gatedForm.email is defined %}{{ gatedForm.email }}{% endif %}" required/&gt;
      {% if gatedForm is defined %}{{ errorList(gatedForm.getErrors('email')) }}{% endif %}
  &lt;/div&gt;
  
  &lt;p&gt;
      &lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;
  &lt;/p&gt;
  
  &lt;/form&gt;
  
  {% endif %}
  </code></pre>
  
  <p>UPDATE: re-installing the Sprout Invisible Captcha plugin and including the following line before the closing  tag got it working:</p>
  
  <pre><code>{{ craft.sproutInvisibleCaptcha.protect() }}
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-07T15:43:40.373Z
Comments.Text: Hi Steve, is it possible you have Invisible Captcha or another spam prevention plugin silently blocking your form submissions?
Comments.UserDisplayName: Ben Parizek
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-07T16:15:33.867Z
Comments.Text: Hi Ben, That may be a possibility. I'll take a look into that, thanks
Comments.UserDisplayName: Steve Rowland
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-07T17:11:45.233Z
Comments.Text: Hi Ben, that helped me to get to the bottom of it. I needed to re-install the Sprout Invisible Captcha plugin and add a line to the template to include it. I'll update the question with the code snippet
Comments.UserDisplayName: Steve Rowland
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-07T18:53:20.420Z
Comments.Text: Thanks for the follow-up, @SteveRowland. Can you add that as an official answer?
Comments.UserDisplayName: Brad Bell
Tags: <entries><form><plugin-sproutforms>
Title: Sprout Form Not Saving Entries
ThreadText: # Sprout Form Not Saving Entries
  
  (Asked by: username_0 on 2015-12-07)
  
  We have a Sprout Forms form being used for gated content access. The form appears to work correctly but none of the entries are appearing in the database/CMS.
  
  Here is an example URL with the form: <http://thisisbeyond.co.uk/blog/feel-good-brands-report-2015/>
  
  Below is a CMS screenshot of the form settings.[![enter image description here](https://i.sstatic.net/HwBnk.png)](https://i.sstatic.net/HwBnk.png)
  
  Below is the template code we are using to generate the form:
  
  ```
  {% if craft.request.getParam('message') == 'success' %}
  
  <div class="alert alert-success" role="alert">Thank you for your message, we'll get back to you as soon as possible.</div>
  
  {% else %}
  
  {% macro errorList(errors) %}
  {% if errors %}
  {% for error in errors %}
  <span class="label label-alert">{{ error }}</span>
  {% endfor %}
  {% endif %}
  {% endmacro %}
  
  {% from _self import errorList %}
  
  <form method="post" action="" accept-charset="UTF-8">
  {{ getCsrfInput() }}
  <input type="hidden" name="action" value="sproutForms/entries/saveEntry">
  <input type="hidden" name="handle" value="gatedForm">
  {% set gated = entry.gatedDocument.first() %}
  <input type="hidden" name="redirect" value="{{ gated.url }}">
  
  <div class="form-group">
      <label for="fields-fullName">Full Name *</label>
      <input type="text" name="fields[fullName]" id="fields-fullName" class="form-control" value="{% if gatedForm.fullName is defined %}{{ gatedForm.fullName }}{% endif %}" required/>
      {% if gatedForm is defined %}{{ errorList(gatedForm.getErrors('fullName')) }}{% endif %}
  </div>
  
  <div class="form-group">
      <label for="fields-companyName">Company Name *</label>
      <input type="text" name="fields[companyName]" id="fields-companyName" class="form-control" value="{% if gatedForm.companyName is defined %}{{ gatedForm.companyName }}{% endif %}" required/>
      {% if gatedForm is defined %}{{ errorList(gatedForm.getErrors('companyName')) }}{% endif %}
  </div>
  
  <div class="form-group">
      <label for="fields-email">Email *</label>
      <input type="text" name="fields[email]" id="fields-email" class="form-control" value="{% if gatedForm.email is defined %}{{ gatedForm.email }}{% endif %}" required/>
      {% if gatedForm is defined %}{{ errorList(gatedForm.getErrors('email')) }}{% endif %}
  </div>
  
  <p>
      <button type="submit" class="btn btn-primary">Submit</button>
  </p>
  
  </form>
  
  {% endif %}
  
  ```
  
  UPDATE: re-installing the Sprout Invisible Captcha plugin and including the following line before the closing tag got it working:
  
  ```
  {{ craft.sproutInvisibleCaptcha.protect() }}
  
  ```
  
  **Tags:** entries, form, plugin-sproutforms
  
  > **Comments:**
  > **username_1**: Hi username_0, is it possible you have Invisible Captcha or another spam prevention plugin silently blocking your form submissions?  
  > **username_0**: Hi Ben, That may be a possibility. I'll take a look into that, thanks  
  > **username_0**: Hi Ben, that helped me to get to the bottom of it. I needed to re-install the Sprout Invisible Captcha plugin and add a line to the template to include it. I'll update the question with the code snippet  
  > **username_2**: Thanks for the follow-up, @username_0. Can you add that as an official answer?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2015-12-08. Score: 4
  
  Re-installing the Sprout Invisible Captcha plugin and including the following line before the closing tag got it working:
  
  ```
  {{ craft.sproutInvisibleCaptcha.protect() }}
  
  ```
  
  
  ---
  
  