1
00:00:00,000 --> 00:00:02,690
I fired this form field.

2
00:00:02,690 --> 00:00:04,640
Why is it still on the payroll?

3
00:00:04,820 --> 00:00:07,200
Switch from business to personal.

4
00:00:07,200 --> 00:00:08,860
Company field? Gone.

5
00:00:08,860 --> 00:00:09,720
Hit submit.

6
00:00:09,720 --> 00:00:11,980
Zombie Corp is still in the payload.

7
00:00:12,160 --> 00:00:15,360
So hiding it doesn’t clear it?

8
00:00:15,540 --> 00:00:17,070
Right. The input’s gone.

9
00:00:17,070 --> 00:00:18,660
The value’s still in the form.

10
00:00:18,660 --> 00:00:21,180
Clear company when they choose Personal.

11
00:00:21,780 --> 00:00:24,350
This handler sets the account type to personal,

12
00:00:24,350 --> 00:00:25,620
then clears company.

13
00:00:25,620 --> 00:00:28,060
Connect it to the Personal option’s onChange.

14
00:00:28,060 --> 00:00:28,970
Now submit.

15
00:00:28,970 --> 00:00:31,020
No company in the request.

16
00:00:31,020 --> 00:00:32,730
Your schema must allow company

17
00:00:32,730 --> 00:00:34,780
to be absent for personal accounts.

18
00:00:34,830 --> 00:00:36,100
A wizard is different.

19
00:00:36,100 --> 00:00:37,190
Keep useful drafts,

20
00:00:37,190 --> 00:00:39,700
but build the request from the active branch.

21
00:00:40,310 --> 00:00:41,980
You fired the field.

22
00:00:41,980 --> 00:00:43,400
It still gets paid…

23
00:00:43,400 --> 00:00:45,200
in the payload.
