<p>I have a form created with <a href="https://github.com/am-impact/amforms" rel="nofollow noreferrer">AM forms</a> that on submission does nothing. It doesn't go to the redirect url and nothing is saved to the database. Not sure what I am missing.</p>

<p>Here is my simplified code:</p>

<pre class="lang-html prettyprint-override"><code>{% set form = craft.amForms.getForm('clubMembershipApplication') %}

&lt;form method="post" accept-charset="UTF-8" class="form-horizontal col-sm-8 col-sm-offset-2 bv-form"&gt;
  {{ getCsrfInput() }}

  {# This should always be here! #}
  &lt;input type="hidden" name="action" value="amForms/submissions/saveSubmission"&gt;

  {# Insert your forms handle. #}
  &lt;input type="hidden" name="handle" value="{{ form.handle }}"&gt;

  {# Optional: Redirect URL. Will redirect to current page by default. #}
  &lt;input type="hidden" name="redirect" value="membership/thankyou"&gt;

  various fields here

  &lt;div class="submit-btn-container col-sm-8 col-sm-offset-4"&gt;
      &lt;input type="submit" value="Submit" class="solo-btn btn"&gt;
  &lt;/div&gt;
&lt;/form&gt;
</code></pre>

CC BY-SA 3.0
2017-11-09T15:40:21.513Z
Are submissions enabled on the form in the control panel?
Cavell Blood
CC BY-SA 3.0
2017-11-09T15:41:29.683Z
Also, have you tried `{{ dump(form) }}` to see what it contains or `{{ form | length }}` to see if anything is being set?
Cavell Blood
CC BY-SA 3.0
2017-11-09T15:43:56.967Z
Actually `form` is being set properly if you are seeing the form in the first place. Otherwise Craft might give you an error because it wouldn't be able to access `handle` if `{{ form.handle }}` if it were `null`.
Cavell Blood
CC BY-SA 3.0
2017-11-09T16:39:52.557Z
@cavellblood save submissions is enabled. And {{ form | length }} outputs a number
CreateSean
<templating><plugin-amforms>
AM Forms not Submitting
# AM Forms not Submitting

(Asked by: username_0 on 2017-11-09)

I have a form created with AM forms that on submission does nothing. It doesn't go to the redirect url and nothing is saved to the database. Not sure what I am missing.
Here is my simplified code:
{% set form = craft.amForms.getForm('clubMembershipApplication') %}


  {{ getCsrfInput() }}

  {# This should always be here! #}
  

  {# Insert your forms handle. #}
  

  {# Optional: Redirect URL. Will redirect to current page by default. #}
  

  various fields here

**Tags:** templating, plugin-amforms

> **Comments:**
> **username_1**: Are submissions enabled on the form in the control panel?  
> **username_1**: Also, have you tried `{{ dump(form) }}` to see what it contains or `{{ form | length }}` to see if anything is being set?  
> **username_1**: Actually `form` is being set properly if you are seeing the form in the first place. Otherwise Craft might give you an error because it wouldn't be able to access `handle` if `{{ form.handle }}` if it were `null`.  
> **username_0**: @cavellblood save submissions is enabled. And {{ form | length }} outputs a number  

---

## 0 answers

