# Can't get multiple crispy forms to post when using {% crispy %}

**URL:** https://forum.djangoproject.com/t/cant-get-multiple-crispy-forms-to-post-when-using-crispy/31174
**Category:** Forms & APIs
**Created:** [May 14, 2024, 1:48pm UTC](https://forum.djangoproject.com/t/cant-get-multiple-crispy-forms-to-post-when-using-crispy/31174 "2024-05-14T13:48:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Bretting](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/bretting/32/21304_2.png) [@Bretting](https://forum.djangoproject.com/u/Bretting)
#### Post date: [May 14, 2024, 1:48pm UTC](https://forum.djangoproject.com/t/cant-get-multiple-crispy-forms-to-post-when-using-crispy/31174/1 "2024-05-14T13:48:41Z")

</div>

Hi,

I have a form and a formset on the same page. I want to use crispy forms layout function. However: when I use the `{{form | crispy}}` it works fine. When I use the `{% crispy form %}` I can’t submit the form and the submit button does nothing. Does anyone know why?

The form section in my template:

```auto
<form method="post" enctype="multipart/form-data">
        {% csrf_token %}
        {{ formset.management_form }}
        {% crispy blog_form %}
        

          <div class="formset corner mt-5" id='formset'>
            <div class='text-center'>
              <h2>Add image gallery</h2>
            </div>
            
  
            {% for form in formset %}
            {% for hidden in form.hidden_fields %}
              {{ hidden }}
            {% endfor %}
            <div class='image-form'>
              {% crispy form %}
            </div>
            {% endfor %}
  
  
            <button id='add-form' class='my-5 btn btn-secondary text-center' type="button">Add</button>        
          </div>
  
          <div class='text-center mt-5'>
            <button class='my-5 btn btn-secondary' type="submit">Save</button>        
          </div>

      </form>

```

and my two forms:

```auto
class BlogForm(forms.ModelForm):
    class Meta:
        model = Blog
        fields = ['name','teaser','hero_image','text','video','category_tag','brand_tag','bottle_tag', 'type_tag']

    def __init__ (self, *args, **kwargs):
        super(). __init__ (*args, **kwargs)
        self.helper = FormHelper()
        self.helper.form_tag = False
        self.helper.render_hidden_fields = True
        self.helper.layout = Layout(
            Div(
            Row('name', css_class='form-row my-1'),
            Row('teaser', css_class='form-control, my-1'),
            Row('text', css_class='form-control, my-1'),
            Row('hero_image', css_class='form-control-file form-row my-1'),
            Row('video', css_class='form-control-file form-row my-1'),
            Row('footer_image', css_class='form-control-file form-row my-1'),
            ),
            Div(
            HTML("""<h3 class='text-center'>Max 4 tags</h3>"""),
            Row(
            Column('category_tag', css_class='form-group col-md-3 my-1'),
            Column('brand_tag', css_class='form-group col-md-3 my-1'),
            Column('bottle_tag', css_class='form-group col-md-3 my-1'),
            Column('type_tag', css_class='form-group col-md-3 my-1'),
            css_class='form-row my-1'
            ),css_class='corner px-3 py-2'),)
            
class BlogImageForm(forms.ModelForm):
    class Meta:
        model = BlogImage
        fields = ['image', 'image_text']

        def __init__ (self, *args, **kwargs):
            super(). __init__ (*args, **kwargs)
            self.helper = FormHelper()
            self.helper.form_tag = False
            self.helper.render_hidden_fields = True
            self.helper.layout = Layout(
                Div(
                Row('image', css_class='form-control-file form-row my-1'),
                Row('image_text', css_class='form-control, my-1'),
                ))

```

---

<div class="post-metadata">

### Author: ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)
#### Post date: [May 17, 2024, 7:32pm UTC](https://forum.djangoproject.com/t/cant-get-multiple-crispy-forms-to-post-when-using-crispy/31174/2 "2024-05-17T19:32:17Z")

</div>

What does your view look like that is rendering and handling these forms?
