From 992a92b4f28235cc9132ef08273b34cc37aa248a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C4=85browski?= <64841871+dabrt@users.noreply.github.com> Date: Wed, 8 Jun 2022 13:30:24 +0200 Subject: [PATCH 1/3] IBX-2504 - Multiple forms caution --- .../tutorials/enterprise_beginner/5_create_newsletter_form.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/tutorials/enterprise_beginner/5_create_newsletter_form.md b/docs/tutorials/enterprise_beginner/5_create_newsletter_form.md index 7ef1c9b18a..78f55e5784 100644 --- a/docs/tutorials/enterprise_beginner/5_create_newsletter_form.md +++ b/docs/tutorials/enterprise_beginner/5_create_newsletter_form.md @@ -2,6 +2,10 @@ The final step of this tutorial assists you in adding to the home page a Form block for signing up to a newsletter. +!!! caution "Known limitation" + + To have multiple instances of the same form on one page, create several identical form blocks that you can then use. Otherwise you may encounter issues with submitting data from all forms at the same time. + ### Add a Form block Start with creating a Form Content item. From 69383d2f67963071ed5c71532e4e208e1518c208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C4=85browski?= <64841871+dabrt@users.noreply.github.com> Date: Wed, 8 Jun 2022 14:37:30 +0200 Subject: [PATCH 2/3] Review comments implemented --- docs/guide/form_builder/forms.md | 2 ++ docs/snippets/forms_caution.md | 3 +++ .../tutorials/enterprise_beginner/5_create_newsletter_form.md | 4 +--- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 docs/snippets/forms_caution.md diff --git a/docs/guide/form_builder/forms.md b/docs/guide/form_builder/forms.md index 3bf3957b00..28c49632f4 100644 --- a/docs/guide/form_builder/forms.md +++ b/docs/guide/form_builder/forms.md @@ -7,6 +7,8 @@ You can build forms consisting of different fields in the Form Builder. To learn how to get, create, and delete form submissions by using the PHP API, see [Managing forms](../../api/public_php_api_managing_forms.md). +[[% include 'snippets/forms_caution.md' %]] + ## Existing Form fields ### Captcha field diff --git a/docs/snippets/forms_caution.md b/docs/snippets/forms_caution.md new file mode 100644 index 0000000000..d90c49447d --- /dev/null +++ b/docs/snippets/forms_caution.md @@ -0,0 +1,3 @@ +!!! caution "Known limitation" + + To have multiple instances of the same form on one page, create several identical form blocks that you can then use. Otherwise you may encounter issues with submitting data from all forms at the same time. diff --git a/docs/tutorials/enterprise_beginner/5_create_newsletter_form.md b/docs/tutorials/enterprise_beginner/5_create_newsletter_form.md index 78f55e5784..c69d51f4ad 100644 --- a/docs/tutorials/enterprise_beginner/5_create_newsletter_form.md +++ b/docs/tutorials/enterprise_beginner/5_create_newsletter_form.md @@ -2,9 +2,7 @@ The final step of this tutorial assists you in adding to the home page a Form block for signing up to a newsletter. -!!! caution "Known limitation" - - To have multiple instances of the same form on one page, create several identical form blocks that you can then use. Otherwise you may encounter issues with submitting data from all forms at the same time. +[[% include 'snippets/forms_caution.md' %]] ### Add a Form block From 51ca547d5739637dd0386506df050d35dd4472b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C4=85browski?= <64841871+dabrt@users.noreply.github.com> Date: Wed, 8 Jun 2022 16:18:08 +0200 Subject: [PATCH 3/3] Update docs/snippets/forms_caution.md Co-authored-by: DominikaK --- docs/snippets/forms_caution.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/snippets/forms_caution.md b/docs/snippets/forms_caution.md index d90c49447d..f752fb5ddc 100644 --- a/docs/snippets/forms_caution.md +++ b/docs/snippets/forms_caution.md @@ -1,3 +1,4 @@ !!! caution "Known limitation" - To have multiple instances of the same form on one page, create several identical form blocks that you can then use. Otherwise you may encounter issues with submitting data from all forms at the same time. + To have multiple instances of the same form on one page, create several identical form blocks. + Otherwise, you may encounter issues with submitting data from all forms at the same time.