Skip to content

Commit 2282597

Browse files
authored
readme.md
This onChange Client script comes handy when dealing with Glide List type fields where we have to detect whether the value was added or removed and returns the name of users who were added/removed.
1 parent 3e27aaa commit 2282597

File tree

1 file changed

+8
-8
lines changed
  • Client-Side Components/Client Scripts/Detect oldValue newValue and Operation in Glide List Type Fields

1 file changed

+8
-8
lines changed

Client-Side Components/Client Scripts/Detect oldValue newValue and Operation in Glide List Type Fields/readme.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ So, In order to identify the oldValue on change(as it does in business rule(prev
66
detect the action performed.
77

88

9-
This onChange Client script comes handy when dealing with Glide List type fields where we have to change the value
10-
in that particular field and detect the value before and after change and also detect the operation which was
11-
performed(addition or removal).
9+
This onChange Client script comes handy when dealing with Glide List type fields where we have to detect whether the value was added or removed and returns the display name of users who were added/removed along with name of operation performed.
1210

1311
Setup details:
1412

@@ -21,17 +19,19 @@ Output:
2119

2220
Currently there is no one in the watchlist field:
2321

24-
<img width="784" height="232" alt="image" src="https://github.com/user-attachments/assets/245339ac-04b3-47db-922a-912cca32fba5" />
22+
<img width="873" height="298" alt="image" src="https://github.com/user-attachments/assets/a46ca53a-f031-4bf9-9f85-2056c408b66b" />
2523

26-
Adding [amos.linnan] , It shows the operation was addition, newValue(user's sysId) as well as oldValue(empty)
27-
<img width="751" height="387" alt="image" src="https://github.com/user-attachments/assets/e6a5d255-44bc-45a1-950b-fd3cb4599f26" />
24+
25+
Adding [Bryan Rovell], It shows the operation was addition, oldValue as 'No record found' as there was no value earlier.New Value shows the name of the user (Bryan Rovell)
26+
<img width="870" height="443" alt="image" src="https://github.com/user-attachments/assets/484284b6-846e-424c-b9c8-a53278f48c72" />
2827

2928

3029
Adding 2 users one by one:
3130

32-
<img width="1903" height="353" alt="image" src="https://github.com/user-attachments/assets/512e77ed-9116-4027-8fd2-446654ef3891" />
31+
<img width="987" height="484" alt="image" src="https://github.com/user-attachments/assets/35dfe96a-c932-4f95-9c8e-bdb48b1c7b5f" />
3332

3433

3534
Removing 2 at once:
3635

37-
<img width="1684" height="375" alt="image" src="https://github.com/user-attachments/assets/54c233de-62af-4e9e-948f-f23e55a155e5" />
36+
<img width="879" height="496" alt="image" src="https://github.com/user-attachments/assets/c83d4e01-f150-44cb-9078-9841072ec949" />
37+

0 commit comments

Comments
 (0)