Skip to content

Commit

Permalink
Temporary restore documentation with the typo on captcha, to work w…
Browse files Browse the repository at this point in the history
…ith the current Form plugin release

To be reverted after the Form plugin release (added to the TODO in
#255)
  • Loading branch information
flaviocopes committed Apr 13, 2016
1 parent 9cabe13 commit 9b01e02
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions pages/06.forms/02.forms/01.fields-available/docs.md
Expand Up @@ -75,15 +75,15 @@ Example:
name: g-recaptcha-response
label: Captcha
type: captcha
recaptcha_site_key: j3jeoi3jeroi23jrio234jro32nrkj43njrn32rn3
recatpcha_site_key: j3jeoi3jeroi23jrio234jro32nrkj43njrn32rn3
recaptcha_not_validated: 'Captcha not valid!'
validate:
required: true
```

| Attribute | Description |
| :----- | :----- |
| `recaptcha_site_key` | The Google Recaptcha Site Key |
| `recatpcha_site_key` | The Google Recaptcha Site Key |
| `recaptcha_not_validated` | The message to show if the captcha is not valid |

| Common Attributes Allowed |
Expand All @@ -101,7 +101,7 @@ The above code will validate the Captcha in the frontend and prevent form submis
```
process:
- captcha:
recaptcha_secret: ENTER_YOUR_CAPTCHA_SECRET_KEY
recatpcha_secret: ENTER_YOUR_CAPTCHA_SECRET_KEY
```

[See the Contact Form example](/forms/forms/example-form) to see it in action.
Expand Down Expand Up @@ -177,7 +177,7 @@ my_field:


| Common Attributes Allowed |
:----- |
:----- |
| [autofocus](#common-fields-attributes) |
| [classes](#common-fields-attributes) |
| [disabled](#common-fields-attributes) |
Expand Down
2 changes: 1 addition & 1 deletion pages/06.forms/02.forms/02.reference-form-actions/docs.md
Expand Up @@ -129,7 +129,7 @@ To also validate the captcha server-side, add the captcha process action.
```
process:
- captcha:
recaptcha_secret: ENTER_YOUR_CAPTCHA_SECRET_KEY
recatpcha_secret: ENTER_YOUR_CAPTCHA_SECRET_KEY
```

## Add your own custom processing to a form
Expand Down
6 changes: 3 additions & 3 deletions pages/06.forms/02.forms/07.example-form/docs.md
Expand Up @@ -58,7 +58,7 @@ form:
- name: g-recaptcha-response
label: Captcha
type: captcha
recaptcha_site_key: ENTER_YOUR_CAPTCHA_SITE_KEY
recatpcha_site_key: ENTER_YOUR_CAPTCHA_SITE_KEY
recaptcha_not_validated: 'Captcha not valid!'
validate:
required: true
Expand All @@ -71,7 +71,7 @@ form:
process:
- captcha:
recaptcha_secret: ENTER_YOUR_CAPTCHA_SECRET_KEY
recatpcha_secret: ENTER_YOUR_CAPTCHA_SECRET_KEY
- email:
subject: "[Site Contact Form] {{ form.value.name|e }}"
body: "{% include 'forms/data.html.twig' %}"
Expand All @@ -91,7 +91,7 @@ Some sample page content

!!! Make sure you configured the "Email from" and "Email to" email addresses in the Email plugin with your email address

Make sure you add your own `recaptcha_site_key` reCAPTCHA parameter ([see the reCAPTCHA docs](https://developers.google.com/recaptcha/docs/start)). If you don't need captcha at all, just remove it from the form fields, and remove the captcha process action too.
Make sure you add your own `recatpcha_site_key` reCAPTCHA parameter ([see the reCAPTCHA docs](https://developers.google.com/recaptcha/docs/start)). If you don't need captcha at all, just remove it from the form fields, and remove the captcha process action too.

Now inside the page folder create a subfolder named `thankyou/`, create a new file named `formdata.md`. Users submitting the form will be redirected on that page.

Expand Down

0 comments on commit 9b01e02

Please sign in to comment.