Skip to content

Commit 9cd9a35

Browse files
authored
Merge pull request #1135 from ExpressionEngine/add/consent-submit-to-param
adding docs for submit_to param on consent tag
2 parents 483dd5a + c73c22d commit 9cd9a35

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

docs/add-ons/consent.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ Specify the HTML `id=` attribute.
7272

7373
Specify a path to redirect the user to after submission. If not specified, they will be returned to the current page. Unused for Ajax-submitted forms.
7474

75+
#### `submit_to=`
76+
77+
submit_to='site_index'
78+
79+
Specify where the form should post. If not specified, the form posts to the current URL.
80+
81+
| value | result |
82+
| ----------- | ---------------------------------------------------------------------- |
83+
| site_index | Post to your site index URL (for example, `/index.php`) |
84+
| action_id | Post directly to the Consent action URL (for example, `/index.php?ACT=123`) |
85+
7586
#### `user_created=`
7687

7788
user_created='only'
@@ -228,6 +239,7 @@ If this tag would not output any consent requests due to your filters, the conte
228239
{exp:consent:form
229240
consent='ee:cookies_functionality|ee:cookies_performance|ee:cookies_targeting'
230241
form_id='cookieConsentForm'
242+
submit_to='action_id'
231243
}
232244
<p>This website uses a variety of cookies, which you consent to if you continue to use this site. You can read our <a href="{path='privacy'}">Privacy Policy</a> for details about how these cookies are used, and to grant or withdraw your consent for certain types of cookies.</p>
233245

@@ -500,4 +512,4 @@ Cookie provider (`ee` or add-on short name)
500512

501513
#### `{cookie_lifetime}`
502514

503-
Cookie lifetime in seconds. `0` represents session cookies (killed after browsing session ends).
515+
Cookie lifetime in seconds. `0` represents session cookies (killed after browsing session ends).

0 commit comments

Comments
 (0)