SUBHAM_SHAW_SN
Tera Guru
Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
07-09-2025
11:24 AM
There are scenarios where you may need to retrieve specific parameters from the URL when a form loads. In such cases, the following code snippet can help:
Add this code within an onLoad client script:
var url = top.location.href; // retrieves the URL
var parameter = new URLSearchParams(url).get(‘<name of the url parameter>’); // Retrieves the value of the parameter
Thanks & Regards,
Subham Kumar Shaw
ServiceNow Architect/Consultant
ServiceNow Community Rising Star ' 2022/2023/2024
- 290 Views
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.