Wednesday, July 30, 2014

Re: simultaneously submit three forms on the same page




 I tried it .. but it is only the first form (   {{ emet_form.as_p }}    )  that is saved..


<form  action="{%url 'formulaire.views.enregistrer'%}" method="post">  {% csrf_token %}
                        {{ emet_form.as_p }}
                        {{ des_form.as_p }}
                        {{ fich_form.as_p }}                     
                   <input type="submit" value="record" />
         </form>





On Wednesday, July 30, 2014 9:19:11 AM UTC, Tom Evans wrote:
On Wed, Jul 30, 2014 at 10:04 AM, Devin Cky <vin1...@gmail.com> wrote:
>
>
>
>
> thank you very much .. how is the template for such a view ... I've put each form in a form tag like that

Only one <form> can be submitted at a time, so if you want all three
Forms to be submitted at the same time, they must all be inside one
<form>.

Cheers

Tom

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ec7666ef-5476-4a86-ba5d-b87199a5ee45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment