WEBVTT

1
00:00:00.179 --> 00:00:04.059
A condition lets the same form handle different answers automatically.

2
00:00:04.980 --> 00:00:09.459
In this lesson, we will create a rule, submit two practice responses,

3
00:00:09.939 --> 00:00:12.779
and check that each response reaches the correct status.

4
00:00:13.173 --> 00:00:15.833
Open the Academy demo form and choose Workflow.

5
00:00:16.673 --> 00:00:18.534
The trigger is a new form submission.

6
00:00:18.886 --> 00:00:20.166
Choose Add Step,

7
00:00:21.547 --> 00:00:22.486
then Condition.

8
00:00:24.187 --> 00:00:25.827
Start with the field you want to check.

9
00:00:26.108 --> 00:00:27.747
We will use Years of Experience.

10
00:00:28.013 --> 00:00:31.573
Choose Greater than as the comparison and enter two as the value.

11
00:00:32.114 --> 00:00:35.313
This rule asks whether the submitted number is greater than two.

12
00:00:36.161 --> 00:00:38.360
Now choose what happens when the condition is true.

13
00:00:38.780 --> 00:00:41.980
Set the matching result to In review.

14
00:00:42.661 --> 00:00:45.640
For the false result, choose Rejected.

15
00:00:46.100 --> 00:00:50.540
Both outcomes are explicit, so the workflow knows how to handle either

16
00:00:50.540 --> 00:00:51.120
answer.

17
00:00:51.560 --> 00:00:54.101
Review the entire rule before saving.

18
00:00:54.341 --> 00:00:58.240
We are comparing a number, not looking for a word in a text answer.

19
00:00:58.760 --> 00:01:00.261
A response of three matches.

20
00:01:00.740 --> 00:01:02.560
A response of one does not.

21
00:01:02.560 --> 00:01:05.480
A response of exactly two is not greater than two either.

22
00:01:05.853 --> 00:01:06.793
Save the workflow,

23
00:01:08.383 --> 00:01:10.803
then activate it if it is not already active.

24
00:01:11.227 --> 00:01:13.887
Confirm the Active status before testing.

25
00:01:13.887 --> 00:01:16.407
The rule must be active to process a new submission.

26
00:01:17.138 --> 00:01:18.698
Open the published practice form.

27
00:01:19.379 --> 00:01:22.118
Enter Demo Alex and the practice email address.

28
00:01:22.570 --> 00:01:24.710
For Years of Experience, enter three.

29
00:01:25.610 --> 00:01:28.510
Complete any other required answers and submit the form.

30
00:01:28.843 --> 00:01:31.223
The confirmation tells us the response was received.

31
00:01:31.670 --> 00:01:35.170
Return to the form's Submissions view and open Alex's new response.

32
00:01:35.647 --> 00:01:37.306
The submitted experience is three,

33
00:01:38.257 --> 00:01:40.257
and its status is In review.

34
00:01:40.557 --> 00:01:42.797
This is the true outcome selected by the workflow.

35
00:01:43.353 --> 00:01:45.873
Now open a fresh copy of the same practice form.

36
00:01:46.374 --> 00:01:49.853
Enter Demo Casey and a different practice email address.

37
00:01:50.293 --> 00:01:52.853
This time, enter one year of experience.

38
00:01:53.133 --> 00:01:55.193
Complete the required fields and submit.

39
00:01:55.700 --> 00:01:56.941
Return to Submissions.

40
00:01:57.161 --> 00:02:00.740
Casey's response is now Rejected, which is the false outcome we

41
00:02:00.740 --> 00:02:01.480
configured.

42
00:02:02.000 --> 00:02:03.919
Open the response and check the answer.

43
00:02:04.319 --> 00:02:07.619
One is not greater than two, so the result matches the rule.

44
00:02:08.133 --> 00:02:10.753
Finally, view the two responses together.

45
00:02:11.374 --> 00:02:14.653
Alex is In review and Casey is Rejected.

46
00:02:14.854 --> 00:02:18.553
The different answers have produced different persisted outcomes without a

47
00:02:18.553 --> 00:02:19.954
manual status change.

48
00:02:20.476 --> 00:02:25.316
You have now created a condition, activated it, tested both branches,

49
00:02:25.597 --> 00:02:26.736
and checked the results.

50
00:02:27.116 --> 00:02:30.596
Next, we will use submitted answers to generate a PDF.
