1
00:00:00,080 --> 00:00:03,773
A registration form is easier to use when a malformed email

2
00:00:03,773 --> 00:00:06,795
or an out-of-range number is caught immediately.

3
00:00:06,795 --> 00:00:11,496
We will make two fictional questions, add response validation, and try three test answers.

4
00:00:11,496 --> 00:00:15,190
The goal is to see a bad address and eight seats

5
00:00:15,190 --> 00:00:17,540
fail while a valid pair can continue.

6
00:00:17,540 --> 00:00:21,234
A numeric range alone does not establish that the seat count

7
00:00:21,234 --> 00:00:22,577
is a whole number.

8
00:00:23,177 --> 00:00:25,874
Create a form called Workshop Registration Practice.

9
00:00:25,874 --> 00:00:30,114
Add a Short answer question for Contact email and another Short

10
00:00:30,114 --> 00:00:33,197
answer question for Seats requested. Mark both required.

11
00:00:33,197 --> 00:00:37,437
Keep the form private while testing; use example.com addresses only.

12
00:00:37,437 --> 00:00:41,291
These two fields demonstrate email-format and number-range rules.

13
00:00:41,291 --> 00:00:46,301
If a real form must allow only whole seats, a one-through-five

14
00:00:46,301 --> 00:00:48,999
multiple-choice question is a safer design.

15
00:00:49,599 --> 00:00:55,052
On the Contact email question, open the question's More options and choose Response validation.

16
00:00:55,052 --> 00:00:57,961
Select the text rule for email-address format.

17
00:00:57,961 --> 00:01:03,051
Add a helpful error message such as Enter an address like name@example.com.

18
00:01:03,051 --> 00:01:05,596
This checks the shape of the answer.

19
00:01:05,596 --> 00:01:09,595
It does not verify that the mailbox exists or belongs to

20
00:01:09,595 --> 00:01:11,413
the person who entered it.

21
00:01:12,013 --> 00:01:15,609
On Seats requested, add another Response validation rule, this time

22
00:01:15,609 --> 00:01:17,407
Number between one and five.

23
00:01:17,407 --> 00:01:19,925
Enter a message that states the range.

24
00:01:19,925 --> 00:01:21,364
Keep the question required.

25
00:01:21,364 --> 00:01:23,162
This checks the numeric bounds.

26
00:01:23,162 --> 00:01:27,478
It does not enforce whole-number seat counts; a decimal such as

27
00:01:27,478 --> 00:01:29,995
two point five lies inside the range.

28
00:01:29,995 --> 00:01:34,671
For a real one-to-five seat choice, use Multiple choice with options

29
00:01:34,671 --> 00:01:36,109
one through five instead.

30
00:01:36,709 --> 00:01:37,429
Open Preview.

31
00:01:37,429 --> 00:01:40,308
First enter alex.example.com with two seats.

32
00:01:40,308 --> 00:01:43,907
The email should fail because it has no at-sign.

33
00:01:43,907 --> 00:01:46,786
Next enter alex@example.com with eight seats.

34
00:01:46,786 --> 00:01:51,824
The second answer should fail because eight is outside the one-to-five range.

35
00:01:51,824 --> 00:01:57,222
These two failures prove that each question's rule is attached to the correct field.

36
00:01:57,822 --> 00:02:01,248
In Preview, enter alex@example.com and three seats.

37
00:02:01,248 --> 00:02:03,532
Both answers meet the stated rules.

38
00:02:03,532 --> 00:02:07,719
You can stop before recording a response if you want only

39
00:02:07,719 --> 00:02:11,906
a UI check; if you submit a fictional response, label it

40
00:02:11,906 --> 00:02:13,809
as practice in your notes.

41
00:02:13,809 --> 00:02:17,996
Do not promise that validation prevents typos such as a correctly

42
00:02:17,996 --> 00:02:19,518
shaped but nonexistent mailbox.

43
00:02:20,118 --> 00:02:23,667
Read the question labels, validation settings, and error messages together.

44
00:02:23,667 --> 00:02:28,635
A form that says five seats maximum but validates up to ten misleads people.

45
00:02:28,635 --> 00:02:32,893
The answer check covers the two failing tests and the passing pair.

46
00:02:32,893 --> 00:02:36,797
It also records the limit: Number between one and five checks

47
00:02:36,797 --> 00:02:38,216
range, not whole seats.

48
00:02:38,216 --> 00:02:43,184
For a real seat count, use one-to-five multiple-choice options and test

49
00:02:43,184 --> 00:02:44,604
a decimal before sharing.
