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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.