<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>

CC BY-SA 3.0
2015-12-08T09:23:02.977Z
2015-12-08T09:23:02.977Z
Steve Rowland
<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>

CC BY-SA 3.0
2015-12-07T15:43:40.373Z
Hi Steve, is it possible you have Invisible Captcha or another spam prevention plugin silently blocking your form submissions?
Ben Parizek
CC BY-SA 3.0
2015-12-07T16:15:33.867Z
Hi Ben, That may be a possibility. I'll take a look into that, thanks
Steve Rowland
CC BY-SA 3.0
2015-12-07T17:11:45.233Z
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
Steve Rowland
CC BY-SA 3.0
2015-12-07T18:53:20.420Z
Thanks for the follow-up, @SteveRowland. Can you add that as an official answer?
Brad Bell
<entries><form><plugin-sproutforms>
Sprout Form Not Saving Entries
# 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.
Below is the template code we are using to generate the form:
{% if craft.request.getParam('message') == 'success' %}

Thank you for your message, we'll get back to you as soon as possible.

{% else %}

{% macro errorList(errors) %}
{% if errors %}
{% for error in errors %}
{{ error }}
{% endfor %}
{% endif %}
{% endmacro %}

{% from _self import errorList %}


{{ getCsrfInput() }}


{% set gated = entry.gatedDocument.first() %}



    Full Name *
    
    {% if gatedForm is defined %}{{ errorList(gatedForm.getErrors('fullName')) }}{% endif %}



    Company Name *
    
    {% if gatedForm is defined %}{{ errorList(gatedForm.getErrors('companyName')) }}{% endif %}



    Email *
    
    {% if gatedForm is defined %}{{ errorList(gatedForm.getErrors('email')) }}{% endif %}



    Submit




{% 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 Steve, 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, @SteveRowland. 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() }}


---

