 Welcome back to the channel. Today I'm going to share with you how we can add a different field that's not only just a text field because in reality we have so many kinds of fields. We have those that are text, we have numbers, we have what you would call option boxes or select where you have a drop down. So I want us to try to add a drop down to our checkout page that is relatively new. So let's dive into the code. So I'm going to use the old plug-in that we used to create our passport checkout field, this very one. And I'm just going to add a little bit more of code to make it usable. So what I'll do is I'll just copy this same function, which is going to get, which is collecting the passport field. So I'll copy this and just paste it down. And I'll add some comments so that we don't get lost along the way. So add a select box option to checkout. So what I'm going to do is I just paste this here. So after pasting this here, we're going to change this field and today we're going to be adding a field that actually gives us maybe the option of transport. Let's say instead of using a cab, maybe they would like to use a bike or they would like to use a skateboard or whatever it is. So the first thing that we need to do is we've changed our ID so that we don't have any errors. And then we'll ask a question, how do you want to move? And that is our question. The next thing that we'll do is we need to change our type of text into a select box. Let's say we want to style it differently. So we'll add another option for let's say transport field. That's what we'll use. And then what we're going to be asking is we'll require it to be true but also we're going to have a default that is coming in from what we had saved before. But in most cases at this point, you want to actually have a default that is going to be one of the options that you're giving. So the first thing that we shall do is actually add an options argument. So the options that we're going to have are number one, it's supposed to be in an array form because we're going to add a number of options. So we need to have it as an array. Then inside the array is where we can start to add the different fields. So let's say if we're going to provide a bike or bicycle that is green and eco-friendly, so we have a bike add also that as an option. So bicycle what we'll see on the front end. Then let me just duplicate this over. So we'll have a taxi which is our option. So we'll have a taxi, maybe we want them to share and we'll have a shuttle. Then we'll give another option maybe. So we'll have a bus, this will be the office shuttle. So office shuttle and then we have this coming in as office shuttle. So we have the option. So what I'm going to do is actually default to office shuttle so that every time someone actually comes to check this, they should be able to make an option and choose. So let's save that, go back to the front end and reload. We'll see that we actually have a new field here. It looks a little bit different from this. So if we were to inspect this element, you'll actually see that we have the select box in there. We have the value and our value selected is always going to be shuttle field until we change it. So we have our options here of bicycle, we have taxi, we have the office shuttle, we have a battle, whatever that is. So that's bus. So I'll just reload this after making those changes to our bus. We now have the bus right here bicycle, taxi, office, shuttle. All that is actually available. So to save your data of this new field that we've just created, all you have to do is come back to this code and use a similar code that we used in our previous video. So you can be able to catch the post of what information has been saved and then send it through using the kind of idea that you've created here. So please watch the video that was before to make it a workout for you. It will be a wonderful experience. Let me know how you go through this. We are ready and that's how you add the extra field that is an option or a drop down in your wukamas. So thank you for watching. If you enjoyed the video, it was really short. Please like the video, leave a comment, subscribe to the channel if you haven't to keep up to date with when I release new videos for you to watch.