1 00:00:00,390 --> 00:00:07,610 In the photo to be used to the quest we used to make a request to render a form than we used to make 2 00:00:07,620 --> 00:00:12,030 a request to submit to form, then on the basis of that, we should have a.. 3 00:00:12,210 --> 00:00:17,050 Either success or error basically in this one. 4 00:00:17,070 --> 00:00:21,110 What we're going to do, we are going to die. 5 00:00:21,200 --> 00:00:23,280 There can be multiple errors in the form. 6 00:00:23,280 --> 00:00:29,400 So like post that, I hired a new one to do this and we the email. 7 00:00:32,730 --> 00:00:37,500 OK, so I'll give it as a title, as email. 8 00:00:42,410 --> 00:00:44,730 And so e-mail is the new title to my home. 9 00:00:45,660 --> 00:00:48,480 Email the new field I to my form. 10 00:00:48,870 --> 00:00:53,820 OK, now and we'll short by and also request. 11 00:00:56,130 --> 00:00:59,580 He is his request. 12 00:01:01,270 --> 00:01:02,770 Don't post 13 00:01:05,560 --> 00:01:07,960 an e-mail as a barometer. 14 00:01:10,340 --> 00:01:17,400 So you can see that in my phone, which provided a new free e-mail, if I'm carpool you to e-mail. 15 00:01:18,270 --> 00:01:25,270 And in the very same way, it was a text input that I requested for e-mail. 16 00:01:25,640 --> 00:01:32,570 OK, now what I do here, we are trying to see that there can be multiple errors on the page. 17 00:01:32,660 --> 00:01:42,830 So what we are going to do, I define an error flag error flag, which would be false in the beginning. 18 00:01:43,700 --> 00:01:52,220 So what we are going to do so first, if title is not going to try to load up so quickly, remove all 19 00:01:52,220 --> 00:01:52,580 this. 20 00:01:55,500 --> 00:02:00,840 So what we're basically trying to convey the idea that there can be multiple errors if title is not 21 00:02:01,610 --> 00:02:14,310 a an error like this will to prove that error is an error, error message is what the title 22 00:02:17,280 --> 00:02:21,570 should be and capital. 23 00:02:23,690 --> 00:02:31,120 But this time, one thing I'm going to change that errors is an is an ad or what is a list don't spend. 24 00:02:32,750 --> 00:02:33,260 Ed. 25 00:02:34,420 --> 00:02:34,960 Message. 26 00:02:34,990 --> 00:02:38,450 OK, so this is fine in the same way. 27 00:02:38,500 --> 00:02:40,300 What I'm going to try to do that. 28 00:02:41,410 --> 00:02:46,360 So here you can see that this is an extension to the producer total. 29 00:02:46,390 --> 00:02:49,990 So what I'm trying to define it and define it, I guess the regular expression. 30 00:02:54,690 --> 00:03:03,050 OK, and so basically, this arrogates is used to define the email address so you can see your dot symbol 31 00:03:03,050 --> 00:03:04,160 with the symbols. 32 00:03:04,850 --> 00:03:05,860 So what I'm going to do. 33 00:03:06,750 --> 00:03:10,160 OK, so basically I have my email. 34 00:03:11,060 --> 00:03:18,050 If not so before this, I need to define an import 35 00:03:20,780 --> 00:03:21,410 import. 36 00:03:21,890 --> 00:03:23,840 So this is a different library invited. 37 00:03:23,840 --> 00:03:25,880 Do we use the regular expression? 38 00:03:27,120 --> 00:03:34,440 So what do I have I computer to the library, recognize the email military, so. 39 00:03:36,220 --> 00:03:48,340 If not drag X, sorry, I did not search, so searches used to determine the match that I expected to 40 00:03:48,340 --> 00:03:48,850 take X. 41 00:03:50,390 --> 00:03:59,990 Call my email, OK, if this happens, then what I'm going to do, yes, Aeroplan will remain through 42 00:04:00,220 --> 00:04:06,610 a window into an arrest or upon error message will come. 43 00:04:07,310 --> 00:04:09,140 But this time the error message would change. 44 00:04:09,230 --> 00:04:20,720 The error message would be error messages, not a valid email address. 45 00:04:22,070 --> 00:04:29,260 OK, so basically I'm trying to convey the idea that there's an error. 46 00:04:29,290 --> 00:04:29,660 Sorry. 47 00:04:30,290 --> 00:04:31,370 So I'll move this line. 48 00:04:31,370 --> 00:04:32,420 If not, I. 49 00:04:34,170 --> 00:04:41,640 OK, so basically I'm trying to convey that idea that if if title is one writer, operator error fragments 50 00:04:41,670 --> 00:04:47,220 to error message with this and this will be appended in the error list. 51 00:04:47,260 --> 00:04:48,290 OK, good. 52 00:04:48,570 --> 00:04:58,830 Then I made a logical then I made it a condition with state logically that if this is not a match or 53 00:04:58,830 --> 00:05:04,060 a search and then error flag will went through, an error message will be not a valid immolators and 54 00:05:04,860 --> 00:05:06,300 this will be appended an error. 55 00:05:06,640 --> 00:05:08,000 OK, ok. 56 00:05:08,030 --> 00:05:17,220 New condition would be next condition if is error. 57 00:05:17,610 --> 00:05:18,960 Error flag. 58 00:05:21,160 --> 00:05:22,060 It's not. 59 00:05:23,790 --> 00:05:25,080 Equal to through. 60 00:05:27,000 --> 00:05:34,150 If a fly is not equal to truth, this is a third definition, but this is if its condition depends on 61 00:05:34,170 --> 00:05:38,670 your logic, but how you can make them to be easy to make in such a way. 62 00:05:38,850 --> 00:05:43,320 If error flag is not equal, to prove that there was no error means error. 63 00:05:43,320 --> 00:05:52,100 Fact is not equal to true, then success and success is equal to form Sumathi. 64 00:05:52,940 --> 00:06:00,800 OK, so now what I would do, I would render this to my form, to the estimate. 65 00:06:01,300 --> 00:06:03,690 OK, but I'll give a quick overview. 66 00:06:04,470 --> 00:06:09,690 If title is not going to take over upper then then it's not ready for such. 67 00:06:10,080 --> 00:06:19,230 If it is not true then this return, then the request my phone brought to the table and taxes to my 68 00:06:19,230 --> 00:06:19,650 dictionary. 69 00:06:21,060 --> 00:06:22,980 So this would help me out in this. 70 00:06:23,250 --> 00:06:27,450 So but before this I need to update my dictionary. 71 00:06:28,170 --> 00:06:35,460 My dictionary is also a dictionary, my dictionary of error. 72 00:06:38,370 --> 00:06:46,140 Is a little better flat and my dictionary of errors. 73 00:06:49,360 --> 00:06:53,630 Is it is OK, this is fine. 74 00:06:53,920 --> 00:07:04,560 So, uh, so I would make that I would, but so now this would render my dictionary to my phone, to 75 00:07:04,600 --> 00:07:04,810 God. 76 00:07:06,040 --> 00:07:07,500 OK, OK. 77 00:07:08,110 --> 00:07:10,000 Before this, what we can do. 78 00:07:15,800 --> 00:07:18,310 Now, I will move to my phone to read a statement. 79 00:07:18,920 --> 00:07:22,190 So basically in advance, I've done this. 80 00:07:22,520 --> 00:07:27,710 If, uh, if it is true, yes. 81 00:07:27,830 --> 00:07:33,730 Or edit in errors, you need to print this error this fall. 82 00:07:34,080 --> 00:07:35,460 And this is conditional. 83 00:07:35,750 --> 00:07:36,060 OK. 84 00:07:36,710 --> 00:07:39,230 So I would restart my server. 85 00:07:46,250 --> 00:07:51,500 Both in my appearance over so when I make a request to my phone. 86 00:07:52,530 --> 00:07:54,960 So here you can see an email has been added. 87 00:07:55,840 --> 00:07:59,700 OK, I'll make a title best. 88 00:08:00,410 --> 00:08:01,010 That's OK. 89 00:08:01,020 --> 00:08:07,920 I'll keep this in lowercase best title test subject. 90 00:08:11,220 --> 00:08:13,350 M. This is not an. 91 00:08:15,410 --> 00:08:20,840 So here you can see there should be in capital and not a valid e-mail address. 92 00:08:20,910 --> 00:08:25,050 OK, OK, I'll make this title though. 93 00:08:25,220 --> 00:08:26,480 I'll make this in capital. 94 00:08:28,850 --> 00:08:31,760 As I told. 95 00:08:34,140 --> 00:08:34,710 Best 96 00:08:37,140 --> 00:08:37,880 subject. 97 00:08:40,780 --> 00:08:46,210 And test me of this time, the title is valid, but the email is not valid, so it should return only 98 00:08:46,750 --> 00:08:49,110 this error that some default. 99 00:08:49,460 --> 00:08:52,360 It's not a valid email address only. 100 00:08:53,950 --> 00:08:57,820 So testator test subject. 101 00:09:01,300 --> 00:09:06,280 The users are determined Broadcom. 102 00:09:08,750 --> 00:09:15,940 So to form somewhere, so I I have gone through all the test cases, my phone has passed so that this 103 00:09:16,160 --> 00:09:18,270 you can see how the logic works. 104 00:09:18,470 --> 00:09:25,810 So basically in the temporary part, what I'm trying to do was if there is room for error, it errors. 105 00:09:26,240 --> 00:09:27,860 So basically I move to my views. 106 00:09:27,910 --> 00:09:29,480 What do I find here? 107 00:09:29,510 --> 00:09:34,800 You can see my error was this error which I had made and this was the error flag. 108 00:09:35,090 --> 00:09:37,850 So basically, even what you can do also bring. 109 00:09:39,640 --> 00:09:47,920 My dictionary to sort of help you to get a better idea is a title that. 110 00:09:49,250 --> 00:09:56,030 And Assman, so so it is not a valid immolators, OK? 111 00:09:56,060 --> 00:10:04,310 And what it is your considered dictators like this, the errors has not editing error, not about individual 112 00:10:04,370 --> 00:10:05,420 and terrorist group. 113 00:10:07,340 --> 00:10:09,720 This is how you can work with this bill. 114 00:10:09,840 --> 00:10:10,370 Thank you, guys. 115 00:10:10,370 --> 00:10:11,180 Thank you so much. 116 00:10:11,450 --> 00:10:15,860 So you can test with maltodextrin and it will help you to understand the logic part. 117 00:10:16,370 --> 00:10:16,880 Thank you, guys. 118 00:10:16,880 --> 00:10:18,350 I'll catch up in the next lecture. 119 00:10:18,380 --> 00:10:18,680 Thank you. 120 00:10:18,820 --> 00:10:19,510 Thank you so much.