All language subtitles for 019 Final Form Submittal_en

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,770 --> 00:00:05,689 In the last section, we were able to take our form state object called the save method on it. 2 00:00:05,930 --> 00:00:12,110 When we did so Save Method found all of our nested text form fields and called the save the unsaved 3 00:00:12,110 --> 00:00:13,470 function that was tied to each one. 4 00:00:14,180 --> 00:00:19,310 So now that we have successfully implemented all this stuff and we are successfully printing out the 5 00:00:19,310 --> 00:00:25,070 actual values associated with each field, we need to make sure that we get both these values into some 6 00:00:25,070 --> 00:00:27,440 common location inside of this widget. 7 00:00:27,920 --> 00:00:31,610 In other words, it's great that we have access to the value inside of unsaved. 8 00:00:31,970 --> 00:00:37,340 But chances are that if we get to like right here, we want to take both. 9 00:00:38,090 --> 00:00:45,980 Like both is the important part, their email and password and post them to some API or do something 10 00:00:45,980 --> 00:00:46,350 like that. 11 00:00:46,370 --> 00:00:51,080 So essentially, I want to get my email and password on, like this line of code right here. 12 00:00:52,390 --> 00:00:59,620 So to do so, we're going to add some instance variables to our login screen widget, so appear at the 13 00:00:59,620 --> 00:01:06,220 top underneath my former key, I'm going to add on a instanced variable of type string that will call 14 00:01:06,490 --> 00:01:07,000 email. 15 00:01:08,050 --> 00:01:12,850 And I'll default that to be an empty string and I'll do the same thing for another instance, variable 16 00:01:12,850 --> 00:01:13,780 called password. 17 00:01:14,910 --> 00:01:21,420 So now, any time that my unsaved method gets called on either field, I'm going to take the value that's 18 00:01:21,420 --> 00:01:27,300 passed in here and I'm going to assign that value to the appropriate instance variable. 19 00:01:27,990 --> 00:01:29,190 So for the email field. 20 00:01:30,610 --> 00:01:37,210 I'm going to assign to the email instance variable, I just created that value, so value is the value 21 00:01:37,210 --> 00:01:39,010 coming out of the text field itself. 22 00:01:39,170 --> 00:01:44,530 I'm going to assign it to my instance variable of email and I'll do the same thing for my password field 23 00:01:44,530 --> 00:01:44,940 as well. 24 00:01:45,700 --> 00:01:49,540 So inside of save down here, I'll say password is value. 25 00:01:51,710 --> 00:01:53,810 So now down inside of Smitt button. 26 00:01:55,100 --> 00:02:01,340 Here's my unpressed callback, we do the validation we call save right here when we call this line of 27 00:02:01,340 --> 00:02:07,060 code that goes up and executes those on saved callbacks and updates the value of our instance variables. 28 00:02:07,550 --> 00:02:14,000 So now on the very next line of code right here, I can assume that the instance variables, email and 29 00:02:14,000 --> 00:02:16,070 password have been updated successfully. 30 00:02:16,730 --> 00:02:18,440 So right here I could print something like. 31 00:02:19,250 --> 00:02:24,890 Time to post, I'll do some string interpolation here of email and password. 32 00:02:26,030 --> 00:02:27,200 To my API. 33 00:02:28,850 --> 00:02:34,400 Or essentially consume the email and password and weather, whatever fashion your application needs. 34 00:02:35,390 --> 00:02:39,110 So last thing to test, I will refresh my simulator again. 35 00:02:44,080 --> 00:02:45,310 Do in the restarts. 36 00:02:46,530 --> 00:02:47,020 Come on. 37 00:02:47,040 --> 00:02:47,460 There we go. 38 00:02:47,520 --> 00:02:49,710 All right, so I'll enter in a valid email. 39 00:02:51,590 --> 00:02:59,300 I'll enter in my password of at least four characters and click submit, and I see time to post that 40 00:02:59,300 --> 00:03:02,480 email and that password to my API. 41 00:03:03,470 --> 00:03:04,340 So that's pretty much it. 42 00:03:05,210 --> 00:03:10,400 It's now right here, whatever you want to do with those four inputs you have, by this time right here, 43 00:03:10,410 --> 00:03:15,040 you have successfully validated the form and said, yup, everything looks great, we're ready to go. 44 00:03:15,410 --> 00:03:20,540 And so all you have to do from here on out after validating is called save to retrieve those values 45 00:03:20,720 --> 00:03:22,670 and then consume the values as you wish. 46 00:03:23,390 --> 00:03:24,180 So that's pretty much it. 47 00:03:24,380 --> 00:03:28,340 That is our login screen using stateful. 48 00:03:29,520 --> 00:03:35,790 Is now before we move on, a quick reminder, we're not quite done yet with all this Lagann stuff, 49 00:03:36,660 --> 00:03:41,790 we still want to take care of learning how to do all this form stuff that we just went over by using 50 00:03:41,790 --> 00:03:43,360 that block pattern as well. 51 00:03:44,100 --> 00:03:49,380 But before we do that refactor, there's one other really, really quick item that I want to mention. 52 00:03:49,620 --> 00:03:51,190 So let's take a brief pause right here. 53 00:03:51,240 --> 00:03:55,320 We're going to come back to the next section and we're going to do one little refactor to our login 54 00:03:55,320 --> 00:03:56,960 screen state method right here. 55 00:03:57,210 --> 00:03:59,840 That's going to be a really, really useful refactor. 56 00:03:59,850 --> 00:04:01,650 So quick break and I'll see you in just a minute. 5505

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.