Answers.Body: <p>Apologies - resolved. Case sensitivity issue with variable (signUp not signup)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-13T16:00:55.747Z
Answers.LastActivityDate: 2016-04-13T16:00:55.747Z
Answers.UserDisplayName: Cole Henley
Body: <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>
  
Tags: <plugin-sproutforms>
Title: Sprout Forms: returning error question
ThreadText: # 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:
  
  ```
  <form class="form form--signup" method="post">
  
      {{ getCsrfInput() }}
      {% set form = craft.sproutForms.form('signup') %}
  
      <input type="hidden" name="action" value="sproutForms/entries/saveEntry">
      <input type="hidden" name="handle" value="{{ form.handle }}">
      <input type="hidden" name="redirect" value="{{ craft.request.url }}#newsletter">
  
      <input type="email" name="fields[email]" id="ft_email" placeholder="Email address" class="form__input" required>
      <button type="submit" class="button btn btn--box btn--send">Send </button>
  </form>
  
  ```
  
  **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)
  
  
  ---
  
  