I have a Django form and I would like it to initially hide a text field until the user selects a checkbox.
I am new to Django and web applications, so I have no idea what I am looking for or what it is called. I have searched to no avail. Any pointer would be helpful.
If you do need to interact with backend, then you'll want to do basically the same thing with the exception that you render the page with Django, listen for checkbox changes and if the change occurs, you send an AJAX request to a Django view that handles that request and returns the data you need (i.e. from database or some complex calculations that shouldn't be in the front-end). To return the data, you can use Django's