From a724d1a0cb562830084fc664c4e45c8841ea4443 Mon Sep 17 00:00:00 2001 From: putzwasser <26040044+putzwasser@users.noreply.github.com> Date: Sun, 8 Sep 2024 18:35:40 +0200 Subject: [PATCH 1/4] Update forms.rst Added the tokens that can be used in a form submit action. --- docs/components/forms.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/components/forms.rst b/docs/components/forms.rst index 153c1877..8e764cca 100644 --- a/docs/components/forms.rst +++ b/docs/components/forms.rst @@ -66,6 +66,13 @@ The available details fields are: * **Display message** - shows a message over the Form once the Contact has submitted the Form. - **Redirect URL/Message** - If you decide to use the Redirect URL successful submit action, paste the URL where you'd like to direct submitters. If you use Display message, enter the message to display. +.. note:: + Mautic parses the following tokens in the **Redirect URL/Message** field: + - `{contactfield=ALIAS}` replacing it with the value of the current contact's field, if any. + - `{formfield=ALIAS}` replacing it with the value entered into the specified form field, if any. + - `{pagelink=PAGE_ID}` replacing it with an absolute URL to the page having the specified ID. + + .. image:: images/forms/standalone_form.png :width: 600 :alt: Screenshot showing standalone Form @@ -527,4 +534,4 @@ To apply domain name filtering on a Mautic Form, add an Email field to the Form :width: 600 :alt: Screenshot showing domain blocking used in a Mautic Form -It's advised to provide a helpful message to display if the visitor tries to use an Email address from a blocked domain, to help them understand what the problem is. \ No newline at end of file +It's advised to provide a helpful message to display if the visitor tries to use an Email address from a blocked domain, to help them understand what the problem is. From 6d909f07b0968d492c7a678381a6327e999d8565 Mon Sep 17 00:00:00 2001 From: putzwasser <26040044+putzwasser@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:54:26 +0200 Subject: [PATCH 2/4] Update docs/components/forms.rst Co-authored-by: Ruth Cheesley --- docs/components/forms.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/components/forms.rst b/docs/components/forms.rst index 8e764cca..c0ba2233 100644 --- a/docs/components/forms.rst +++ b/docs/components/forms.rst @@ -68,7 +68,7 @@ The available details fields are: .. note:: Mautic parses the following tokens in the **Redirect URL/Message** field: - - `{contactfield=ALIAS}` replacing it with the value of the current contact's field, if any. + - `{contactfield=ALIAS}` replacing it with the value of the current Contact's field, if any. - `{formfield=ALIAS}` replacing it with the value entered into the specified form field, if any. - `{pagelink=PAGE_ID}` replacing it with an absolute URL to the page having the specified ID. From 898f05a60a1c93251743e3c926e964d6250cd36e Mon Sep 17 00:00:00 2001 From: putzwasser <26040044+putzwasser@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:54:36 +0200 Subject: [PATCH 3/4] Update docs/components/forms.rst Co-authored-by: Ruth Cheesley --- docs/components/forms.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/components/forms.rst b/docs/components/forms.rst index c0ba2233..73ff2a4c 100644 --- a/docs/components/forms.rst +++ b/docs/components/forms.rst @@ -70,7 +70,7 @@ The available details fields are: Mautic parses the following tokens in the **Redirect URL/Message** field: - `{contactfield=ALIAS}` replacing it with the value of the current Contact's field, if any. - `{formfield=ALIAS}` replacing it with the value entered into the specified form field, if any. - - `{pagelink=PAGE_ID}` replacing it with an absolute URL to the page having the specified ID. + - `{pagelink=PAGE_ID}` replacing it with an absolute URL to the page with the specified ID. .. image:: images/forms/standalone_form.png From 865fb5d0ec2254e9a0eb2dceab7645946b09b6ed Mon Sep 17 00:00:00 2001 From: putzwasser <26040044+putzwasser@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:54:43 +0200 Subject: [PATCH 4/4] Update docs/components/forms.rst Co-authored-by: Ruth Cheesley --- docs/components/forms.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/components/forms.rst b/docs/components/forms.rst index 73ff2a4c..9aad076f 100644 --- a/docs/components/forms.rst +++ b/docs/components/forms.rst @@ -69,7 +69,7 @@ The available details fields are: .. note:: Mautic parses the following tokens in the **Redirect URL/Message** field: - `{contactfield=ALIAS}` replacing it with the value of the current Contact's field, if any. - - `{formfield=ALIAS}` replacing it with the value entered into the specified form field, if any. + - `{formfield=ALIAS}` replacing it with the value entered into the specified Form field, if any. - `{pagelink=PAGE_ID}` replacing it with an absolute URL to the page with the specified ID.