- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 11:20 AM
Hi ,
We are using an ui action with with we are sending the parameter via URL to a client script on a catalog item.
though the url is having parameters but the cilent is not picking it up .
for reference providing the script below.
please help with any suggestions you have!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 11:38 AM - edited 07-18-2024 11:40 AM
Hi @archanachil ,
If you have the parameters in your URL, you can use this logic to fetch them. I've used it in one of my project and it works.
var gUrl = top.location.href; //get the URL
//fetch the parameter, add the correct name of your parameter instead of parameter_name1.
var name1 = new URLSearchParams(gUrl).get("parameter_name1");
Thanks,
Hope it helps.
If my response turns useful, you can mark it helpful and accept solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 11:38 AM - edited 07-18-2024 11:40 AM
Hi @archanachil ,
If you have the parameters in your URL, you can use this logic to fetch them. I've used it in one of my project and it works.
var gUrl = top.location.href; //get the URL
//fetch the parameter, add the correct name of your parameter instead of parameter_name1.
var name1 = new URLSearchParams(gUrl).get("parameter_name1");
Thanks,
Hope it helps.
If my response turns useful, you can mark it helpful and accept solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 11:49 AM
Thanks @Community Alums
