How to display content on a form dynamically when a field value is selected

14 views
Skip to first unread message

Technical Services at Maitripa College

unread,
Dec 12, 2019, 7:27:27 AM12/12/19
to Django users
I have a form that displays course codes from a drop-down list. I would like to display dynamically the content of another field (different for each course) each time a course code is selected from the drop-down list.

Thanks in advance!

alfredo 

Alaina Rowe

unread,
Dec 12, 2019, 8:06:09 AM12/12/19
to Django users
If the dynamic display changes without the page re-loading, then the best way to do this is with Javascript. Use the Django template to make sure all of the content you might want to show is on the page, and then use JS to change one field on the event of the other field changing.
Reply all
Reply to author
Forward
0 new messages