Hello, friend, welcome back.
In a previous video I have already discussed about some of the input field, that means that of the
Django Library input field as a full name, that they took part and the email.
So now in this video and the discourse about sound and other input field, so can working with this
in this video, I will show you that things with a live example.
So for doing this, first of all, I want to do want to change some of the form like here into the form
I have already discussed about that name, the DB and the email.
Right.
So I wanted to change it.
Like, I just simply remove it from here and now here I want to do and define some of the another input
field as a boolean field.
So I just simply defined as a blend with the L e and I just take one of the variable faster the boolean
field, OK, I just take out the variable and then without Django forms, so without Django forms I
want to access on another type as a boolean playing field.
I just felt like, OK friend.
So now if you click as a Savol I just click the save all and now go to our Pei's and refresh it.
Now you can see it's not showing all of the checkmarks so if you selected so then it will be added to
true Blackmun's.
It should be returned some of the value as a true.
And if you marked that as the object marked then it should be done some of the value as a fault.
OK, so now I have to do when you select as a check Martin here, I want to visible this already done
that value.
Sierre, I want to visible light.
So if you on the visible lead then you have to do have to go to our farmers gismo and the farmers.
Giammo like that is actually our farm and that is our view right into the view area.
I want to do it on top debted.
So here right now, I don't need this.
I have already discussed about that.
Things we do.
How can get all the data with the clean data?
So now I want to do that work again.
So I just simply remove it.
See in particular that position.
I just simply defended the decision, OK, to the decision.
I just simply want to update our update.
And here I want to do update our filenames, our field variable I have defined in our form area.
So I have defined as a boolean field.
Right.
So here I have already created all the class as our user class and in particular that position.
I have already loaded our user clathrates and also created the object.
I requested that also now into visibility, into this airconditioned area.
So here I define our field them OK.
And after that here I also want to do and define that things with our I want to get all the data from
all our forms right here from here.
I want to get out this from Boolean data.
So if you are to get it, as I told you, there have also another method as a clean data.
So with this clean data, we can actually get it.
So in particular, that position, our D form, that means our new form, because here I have already
defined our post all the data and take the things with this variable.
So now with this OK, with this I want to do to define our method as a clean, clean, underscored data.
I just simply define the clean data and in particular that area we have to do we have to define our
field.
So our field as a boolean field variable.
So now I to do and simply pass it.
OK, and also I take out another key as a form submit.
So with this form submit key, I want to visualise in our form in this space to now go to our form indexed
space.
So the form index.
So here right now we don't need this.
OK, I just simply remove it from here.
So it is simply a little bit and I have also defined our key in particular, that position I want to
do on the display are this from data that means here I have defined as a form that meets our boolean
field in particular that position I just simply differentiable landfilled, OK, and also the submits,
I guess the name change that name as a bullet.
OK, just name it as a bullet.
So now if you click as a save all I just here to save all and now refresh it.
Now select this one.
Click on the submit.
Yes.
Now you can see it's now perfectly done this value as a true as I told you, if you marked as a checkmark
then you shall be returning value as a true rather than if you uncheck market then it should be done.
This is value as a default.
So if you are market and if you click on the submit now consider snowshoeing as a this is actually the
record.
So here, as I told you before, if you want to make that things as a unrecovered, then you have to
do you have to define that as a one of the attribute with the required attribute.
And you have to make that things have the false right by default.
That is actually the true.
So if you want to change it like here, that is our form in the form that they are boolean fill.
Right.
So here I just make the things that good could record.
And by default, that is actually the truth.
So now I have to learn to make that into default, so I just name it as default.
OK, so I just make the things as it falls right now.
Not clear this all.
Now, refer this space, and now I want to turn to I do want to check market, click on the submit.
Yeah, you can see Snowshoeing at the Falls and if you selected click on the submit, there needs to
be done then the value added through.
And also, if you want to define some of the character limit, then you can also define some of the
character lengths like here, like here after this.
OK, after this I want to take another variable and then just name it as a character, OK, character
Invesco Field.
And then I just define what the form and with the forms I define our character, field type, define
our character filled out and the character field type.
I want to do a role defined.
So the maximum length.
OK, I just give the maximum land for this one, I define the maximum length will be as a 15.
OK, and also you can define the minimum length.
So just simply define the minimum, underscore length and say the simple, define minimum lane for the
fight.
OK, so this step up, if you want to display this type of blend.
You can also define sound the maximum length and the minimum length into the target area like here if
you're not going to get the same ball and now if you refresh it now, consider that with the character
field.
So here, if you want to display this value like here, we have to do up to the updated go to our view
into the view.
I have defined that boolean field.
Right.
So I want to do and to change it.
I want to make the things as the same name.
Then it'll be better for display.
All that example like here I define that feels better I have to do and to change that variable name
as I feel I have already discussed about the things we do right now and to do and make that things as
they come and also known to working with this field.
So just simply defining it.
So here I define that field and here in our clean data I define as a field.
So now we have to also defining it in our formal statement as a field to be for that particular boolean
field.
So now I define field, OK, perfect symmetry at the front of the field.
So it shall be actually helpful because of all we will work a lot of the examples.
I have the example, if you want, of visibility and visibility into the field area.
So here I have painted with this field, so now we don't need to update it every time for the reasons
here.
I have updated it.
OK, so now I want to do and because I save all the.
Save all.
Check out our common line.
Everything is great, so now here, if you refresh it again now, I just bought some of the land click
on the submit.
Now see, it's not showing our this film.
And here, if you define that three submit now you can see still showing our validation and please land
takes the five character.
So here I have defined some of the minimum length and the maximum length.
Right.
So maximum length will be as a 15 and the minimum length I have defined that five.
So for the reasons here, if you define a three, then it will be displayed the step up of that validation.
And also I define that maximum length, maximum length I have defined as a 15.
Right.
So right now I want to define some of the 15 character you can see.
You cannot actually added more than the 50 character in particular, this input field area.
So I hope you can understand about it.
So here, if you want to define the character limit, then you can define this character limit with
this maximum length.
And if you want to live on the minimum length, then you can define that things with this.
And then also if you want to define some of the tools, feel like in e-mail we define as the option
to select only the select.
We define some of the options.
Well, right.
So if you want to do this work in Django, you can defining it better.
I want to do I want to make the things as a comment, OK?
And after that I take one of the variable and just name it as a field, OK?
Just name it as a field and then the forms.
So with these forms, I define our time as a choose field tools field.
So I just simply find it useful.
And the truth field.
What exactly you have to pass.
You have to pass that value and also you have to pass on that option name.
Right.
So here, if you want to select it, then you have to define the tools.
So they have all the attributes as they choose.
And with this choose you can defining it with this choose.
First of all, here you have to define your value.
So just simply define the value as a one.
And after that, the name.
So here I defined that name as a fast OK, just name it as a fast.
So here, if you want to add that multiple and then you can also defining it better.
I just copy it.
And then after that, that's one and three.
That means there should be the two and that will be a three.
I just simply finish the second or two, OK, and then I will simply define as a three.
So I just simply defended the three.
So here I define that value.
So this will be actually the value.
So in e-mail, as I told you, to select, we define that option into the option.
We define the value and then we define some of the name.
Right.
So here I define that value as a one, as a fast on name two value.
I just simply defined as the to name and the three names.
So now if you click as the save all the save all now go here.
Refresh it.
Now you can see that the field and now that is our fast one, that the two and there is a three and
also here I define some of the value, like for the fast, I have defined that value as a one for the
two.
I define that value as a two.
And for the three, I define that value as a three.
Right now I want to check it like a simply definitive fast click on the submit.
Now you can see it's not showing as a field value as a one.
So if you select the two, it's showing at the two.
If you the three, it's the swing of the three.
So for the reasons here, I have defined that all value.
So that is actually all value.
Right.
So if you also want to make the things like for the fast one, that will be some the option as a select
select option and by default the select option will be as a true for the business here.
You cannot insert it.
So here I want to do I want to defining it.
So here, if you want to defining it, you have to do better.
I just simply copy and paste it.
And first of all, I just make the things as empty and for the empty automatically will be as a true.
So for the results, you cannot actually add these data.
So here I define sound name, so I just name it as a select select option.
So this step up on the text, which will be visible now let's check this out.
I just click to save all.
No, refresh it.
Now, consider the with our selection, so when you select as an option, I submit here you can see
snowshoeing as a please select an item on the list.
So because of all here, I didn't find any value.
Right.
So because of all here, I didn't find any value.
So it will be as empty by default in Django.
This attribute will be as a true.
OK, so for the regional seats now you can see some actual record.
So far there is not accurate for the reasons it's not showing this step of one of the message so far.
Better understand if you go to the source file into the source file here, you can see that the select
option that is a value as a one value to add value three.
So that is actually a stable code, as I told you before.
So right now, I think it should be very much clear to you.
And also here, if you want to make that things as a radio box right now, that is a classic select.
Right.
So here, if you want to load your radio box, then how can do that work?
So right now, like here I want to do to make the things as a combatant again.
And I take another variable, I take another variable and I just name it as a field.
This will be just like the same.
I just simply defined as a form.
Sorry.
So just take on the variable of the field and then into the form.
OK, to the forms, I define our troops field.
OK, I just simply found out the truth will and the truth will we have to pass our attribute?
I will have to pass attribute the chooses to this and then we have to pass our eye to this.
All the value attached to this, all that value we have to do.
We have to define some of the value like here.
I define all the variables to this.
OK, I just found the variable to this.
And then here I want to do and define just like our value and the name.
So I just simply defining it.
First of all, I just have to define the value as an error.
And also I define that name will be as a prediction, but I'm using it.
And also I want to take another one.
But recompete and Papeete.
So it'll be like as a be OK to simply define sorry.
I just simply want to be that be, and that will be the sea and the sea.
OK, so I just take it all that variable and take the things with this our tools.
That means these variables are now here.
I have to do I have to pass it.
So I just simply pass it.
Now we know where we get the idea.
That means wiggers attribute.
I want to defining.
It's just simply different.
We get the bloodied, OK, we get onto the we get I just to the forms and the forms I define make that
things are the type.
So the form step I want to use as a radio select.
So I just simplify the radio select.
OK, I just simply defended the radio select.
So now that's all you have to do.
So now if you click as a Savol, I just click the save all and now go here, refresh it.
So maybe they have solved the error.
Let's check this out.
And now here you can see snowshoeing on the air as a form is not defined in spelling mistake here you
can see that the spelling mistake, it should be as a form F4 item.
OK, so that rejected the forms forms.
Perfect.
Now, let's check this out again.
Clear the save all.
Young, still perfectly running now refresh it again.
Yes, perfect now, because it's now become our disvalue.
So for this one, I have defined that value as a and for this, your name actually visible as a so there
is a B and there is a C.
So if you select this one, click on the submit now consistent showing our value as a C like this one
value as a B, so there is a value I have defined.
So here I have defined that value as it is.
So what are the things you define on here?
I just simply defined as a value azapo like like like no I just simply defined as Apple.
Now it should be very clear to you.
Now a freshet again now iSelect has submitted no consistent value, actually, Apple friend, so that's
how you can actually use your tools field.
And also if you want to add some of the radio button, then you can add that radio button with this
input filled area.
So that is actually the attribute.
So I think you can well understand about it.
So for now, everything is actually very much basic things.
So literally, as I told you, we will create a different type of project.
So we will create this project then all that, our basic fundamental will, we need it.
So make sure you learn all that main code thinks it will help you a lot.
Next video I want to discuss about that form validation.
How can define some of the validation in your form?
In our next video, I will show you that things with a live example.
So thanks for watching and I'll see you the next video.