SUBHAM_SHAW_SN
Tera Guru
Tera Guru

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