Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

SUBHAM_SHAW_SN
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