formcycle 8.3.6 - JavaScript for forms
    Preparing search index...

    Function getURLParameter

    • Retrieves the value of the named URL parameter. In case a parameter is specified multiple times, only the value of the first occurrence is returned.

      If the URL is as follows:

      https://formcloud.de/formcycle/form/provide/9999?name=James&preview&mode=&name=John

      Then this function returns:

      getURLParameter("name"); // => "James"
      getURLParameter("preview") // => undefined
      getURLParameter("mode"); // => ""
      getURLParameter("other"); // => undefined

      Parameters

      • name: string

        Name of the URL parameter to retrieve.

      Returns string

      The value of the URL parameter with the given name, or undefined if no such URL parameter exists.