Email or URL Encode Function for Forms for Actions

Overview

This article explains how to Encode an Email through Forms for Actions like the following example using Helper Functions in the Auth0 Documentation.

test+mail@example.org” to “test%2Bmail%40example.org

Applies To

  • Actions
  • Forms for Actions

Cause

Solution

The below function can be used to encode the URL directly in Forms for Actions.

{{ functions.encodeURIComponent(' test+mail@example.org ') }}