URL-encodes the contents of a string field.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
as | string | false | _urlencode | Name of output field. |
field | string | true | The name of the input field with the value to url-encode. [a] | |
type | string | false | Type of encoding | |
urlEncode()
Examples
With an event with a field
Bar=https://www.example.com, you
get https%3A%2F%2Fwww.example.com
in the
_urlencode field
logscale
urlEncode("Bar")
With an event with a field
Bar=https://www.example.com, you
get https%3A%2F%2Fwww.example.com
in the
Foo field
logscale
Foo:=urlEncode("Bar")
With an event with a field
Bar=https://www.example.com, you
get https%3A%2F%2Fwww.example.com
in the
Foo field
logscale
urlEncode("Bar", as="Foo")