You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use Case: When submitting a Record Producer, a date field can’t be in the past. How to accomplish this?
4
+
5
+
We can create a Catalog Client Script.
6
+
7
+
1) What is the trigger?
8
+
9
+
The script will run when the date field value changed.
10
+
11
+
2) What do we need to confirm?
12
+
13
+
We need to check if the date provided is in the future.
14
+
15
+
3) What if the date is not in the future?
16
+
17
+
If the date is not in the future, then we show an error message to inform that the date cannot be in the past.
18
+
19
+
Step by step process
20
+
21
+
1) Create a Record Producer (RP) and define the Catalog and Category so it will be visible in a Service Portal
22
+
23
+
2) Create a variable in your RP. In this example, the variable will have this configuration:
24
+
25
+
Type: Date
26
+
Question: Project Deadline
27
+
Name: project_deadline
28
+
Mandatory: Yes (checked)
29
+
30
+
3) Create a Catalog Client Script in your RP to check if the project_deadline value changed. If the date is in the past, show an error message to the user.
0 commit comments