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?
5
+
6
+
We can create a Catalog Client Script.
7
+
8
+
1) What is the trigger?
9
+
10
+
The script will run when the date field value changed.
11
+
12
+
2) What do we need to confirm?
13
+
14
+
We need to check if the date provided is in the future.
15
+
16
+
3) What if the date is not in the future?
17
+
18
+
If the date is not in the future, then we show an error message to inform that the date cannot be in the past.
19
+
20
+
# Step by step process
21
+
22
+
1) Create a Record Producer (RP) and define the Catalog and Category so it will be visible in a Service Portal
23
+
24
+
2) Create a variable in your RP. In this example, the variable will have this configuration:
25
+
26
+
Type: Date
27
+
Question: Project Deadline
28
+
Name: project_deadline
29
+
Mandatory: Yes (checked)
30
+
31
+
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