Getting URL Parameters In Client Script

To get the URL parameters in the client script, we can us the following codes.

  let a= new URLSearchParams(window.location.search)
  console.log("custom form ID",a.get('cf'))

Leave a comment

Your email address will not be published. Required fields are marked *