dynamic formular

28 views
Skip to first unread message

Arnold Falanga

unread,
Nov 10, 2022, 9:47:05 AM11/10/22
to Django users
Hello can anyone help me to design a dynamic form with Django the idea is to have two parts in this form. a link to add the lines

Malick Diagne

unread,
Nov 10, 2022, 10:38:52 AM11/10/22
to django...@googlegroups.com
Good morning
Please write in french if you Can
I try to help you
Thanks you 

Le jeu. 10 nov. 2022 à 2:47 PM, Arnold Falanga <arnold...@gmail.com> a écrit :
Hello can anyone help me to design a dynamic form with Django the idea is to have two parts in this form. a link to add the lines

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f9c74264-7cc0-448d-bcee-9110f7a91292n%40googlegroups.com.

Arnold Falanga

unread,
Nov 10, 2022, 2:20:23 PM11/10/22
to Django users

merci beaucoup 
au fait un souci depuis avec la conception du formulaire. je dois implémenter un formulaire qui a deux parties 
la partie haute reprend les détails généraux de la commande tel que: la date de réception, le numéro du bon de commande , etc.
la deuxième partie du formulaire devra reprendre les informations liées à chaque ligne de commande...
il  y aura : le nom de l'article, la quantité, le prix, etc.
pour une commande, on pourra avoir plusieurs articles. 
capture_jupiter.png

Ryan Nowakowski

unread,
Nov 12, 2022, 11:09:43 AM11/12/22
to django...@googlegroups.com
Check out Django formsets[1]. First get it working without any fancy dynamic stuff. Then add the dynamic bit using something like htmx[2].

[1] https://docs.djangoproject.com/en/4.1/topics/forms/formsets/
[2] https://htmx.org/

Clive Bruton

unread,
Nov 12, 2022, 11:13:29 AM11/12/22
to django...@googlegroups.com
Try django-extra-views

https://github.com/AndrewIngram/django-extra-views

Hugely simplifies formsets


On 10 Nov 2022, at 11:14, Arnold Falanga wrote:

> Hello can anyone help me to design a dynamic form with Django the
> idea is to have two parts in this form. a link to add the lines
>
Reply all
Reply to author
Forward
0 new messages