Hello
In your case i wouldn't import all the form at once using, {{ form.as_p}}

Instead try to import every single field of your form thenyou can use
JavaScript to show and hide fields according to input because django can't
do this kind of editing.


On 24 Oct 2021 7:32 PM, "Dina Dodin" <dinado...@gmail.com> wrote:

Hi

i have forms (not using Models)
in some forms i want to introduce dropdown list for example in case some
specific value is selected for another existing form field.

i tried something if found in google but nothing seems to work for me.

if someone can help me with it will be great!

in html template i get the form as this: {{ form.as_p }}
i want to show/hide a new field according to value i select of existing
field value.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/4974223a-7544-4934-8f1f-e07675590d44n%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/4974223a-7544-4934-8f1f-e07675590d44n%40googlegroups.com?utm_medium=email&utm_source=footer>
.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHs1H7uWigr_Z6kQHb%3DbZE3F-JXrj7JA-y9T5zWVn15fkmvdMw%40mail.gmail.com.

Reply via email to