<p>Apologies - resolved. Case sensitivity issue with variable (signUp not signup)</p>

CC BY-SA 3.0
2016-04-13T16:00:55.747Z
2016-04-13T16:00:55.747Z
Cole Henley
<p>With Sprout Forms is it possible to return an error message if a form submission is bouncing back because unique values are expected?</p>

<p>For example, if I have a custom HTML form called <code>signup</code> I would expect it to throw back an object called <code>signup</code> but <code>signup</code> is not defined. Also tried <code>form.getErrors()</code> but this also returns empty.</p>

<p>Sample form code:</p>

<pre><code>&lt;form class="form form--signup" method="post"&gt;

    {{ getCsrfInput() }}
    {% set form = craft.sproutForms.form('signup') %}

    &lt;input type="hidden" name="action" value="sproutForms/entries/saveEntry"&gt;
    &lt;input type="hidden" name="handle" value="{{ form.handle }}"&gt;
    &lt;input type="hidden" name="redirect" value="{{ craft.request.url }}#newsletter"&gt;

    &lt;input type="email" name="fields[email]" id="ft_email" placeholder="Email address" class="form__input" required&gt;
    &lt;button type="submit" class="button btn btn--box btn--send"&gt;Send &lt;/button&gt;
&lt;/form&gt;
</code></pre>

<plugin-sproutforms>
Sprout Forms: returning error question
# Sprout Forms: returning error question

(Asked by: username_0 on 2016-04-13)

With Sprout Forms is it possible to return an error message if a form submission is bouncing back because unique values are expected?
For example, if I have a custom HTML form called signup I would expect it to throw back an object called signup but signup is not defined. Also tried form.getErrors() but this also returns empty.
Sample form code:


    {{ getCsrfInput() }}
    {% set form = craft.sproutForms.form('signup') %}

    
    
    

    
    Send

**Tags:** plugin-sproutforms


---

## 1 answers

### Answer by username_0 on 2016-04-13. Score: 2

Apologies - resolved. Case sensitivity issue with variable (signUp not signup)


---

