Articles in this section

decodeURI helper

Use the decodeURI helper to convert a URI-encoded string into its decoded form. This is especially useful when you need to process data that contains URL-encoded spaces, symbols, or other special characters.

Usage

{{{decodeURI field}}}
  • field: The field or string containing the URL-encoded text (e.g., record.orders or a literal like "overseas%20order%20flow").

Note

Note: This helper often appears with triple braces ({{{ }}}) to ensure you’re getting the raw decoded text without any additional formatting or escaping.

Examples

  1. Decoding a field containing URI-encoded data 

    {{{decodeURI orders}}}

    If orders is "overseas%20order%20flow", the output becomes "overseas order flow".

  2. Decoding a literal URI 

    {{{decodeURI "overseas%20order%20flow"}}}

    Produces the same decoded string: "overseas order flow".

Tip

  • Use triple braces ({{{ }}}) when decoding URIs to avoid automatic encoding or quoting of the decoded result.

  • If the input is already decoded or is not a valid URI-encoded string, the helper simply returns the original text.

  • Combine decodeURI with other helpers (like encodeURI or base64Encode) only if you fully understand how they transform text.Use the triple-brace {{{decodeURI}}} helper to decode a URI-encoded string. This will convert encoded characters (e.g., %20) back to their standard textual representations (e.g., spaces).