Skip to content

Commit c15fe89

Browse files
authored
Add README for User Location Validator solution
This document explains the User Location Validator solution, which restricts ServiceNow form submissions based on user location. It details the functionality of the Script Include and Client Script involved in the validation process.
1 parent 9fa52c7 commit c15fe89

File tree

1 file changed

+4
-0
lines changed
  • Client-Side Components/Client Scripts/Dynamic Location Validation Approach

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User Location Validator
2+
This solution ensures only users within their assigned business location can submit ServiceNow forms. The Script Include (Server-Side Components/Script Includes/Dynamic Location Validation Approach/UserLocationUtils.js) fetches location coordinates from the user’s profile. The Client Script (Client-Side Components/Client Scripts/Dynamic Location Validation Approach/User Location Validator.js) compares these with the actual browser location, blocking submission if the user is outside the allowed area. Update office location in the user record to adjust the validation.
3+
4+
If using a scoped application, ensure cross-scope access is allowed for Script Include calls.

0 commit comments

Comments
 (0)