Django redirect to a view function after selecting an item from dropdown box

76 views
Skip to first unread message

Rudolph Louis Cabeltis

unread,
Sep 11, 2019, 8:39:12 AM9/11/19
to Django users
Hello,

I am using Forms by Django. And that form has a select box with two options.
After a user selected an option. I would like the user to do the function in the django view.
Will I be able to do this without using AJAX or Javascript?

Thank you.

Nelson Varela

unread,
Sep 13, 2019, 10:47:36 AM9/13/19
to Django users
check the value of your form field in the post. Based on that value you van do stuff

Op woensdag 11 september 2019 14:39:12 UTC+2 schreef Rudolph Louis Cabeltis:
Reply all
Reply to author
Forward
0 new messages