After a user has filled out a form, they are ready to submit that data. This video walks through how to allow the user do that and where to send it.
- [Instructor] So we have a decent looking form here … for our pizza ordering process, … but a big missing piece here is that … we can't order anything, right? … There is no order button to say, … okay, I want a cheese on my pizza. … I also want to have maybe some olives on my pizza. … You know even if we provide the toppings, … there's no order button here … in order to make this a reality. … So, let's go ahead and talk about … how we can do that. … Before you end the form, you can add a special type of input … that will submit the form, meaning complete it … and forward everything to some URL. … And we create that by simply making an input tag … and with this input, we give it a very particular type. … So we're going to have the type of this be equal to submit. … And again this is what turns it into a button … and takes all the data and sends it somewhere. … And the value is what text you want to appear … inside of this button. … So, here we might put some text, something like order pizza. …
- Creating form fields
- Using submitted data
- Adding models
- Using the ModelForms class
- Working with widgets
- Accepting files and multiple forms on a page
- Customizing formsets
- Using local validation
- Delivering errors responsibly
- Customizing forms
- Styling with CSS
Skill Level Intermediate
1. Getting Started with Forms
2. Working with Advanced Form Features
3. Customizing and Styling Form Appearance
Next steps1m 19s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.