Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated ID "form-nonce" on page with two form #128

Closed
DavideTrendstudio opened this issue Mar 9, 2017 · 1 comment
Closed

Duplicated ID "form-nonce" on page with two form #128

DavideTrendstudio opened this issue Mar 9, 2017 · 1 comment

Comments

@DavideTrendstudio
Copy link

I have two forms on a page in my website (request form + newsletter form in footer)
The first form is defined directly inside the page's frontmatter and rendered by the form.html.twig template.
The second form is present on each page of the website in the footer, so I defined it inside a non-visible and non-routable page and import it in every page of the website using the 'include' function in the base.html.twig template.

The Form Plugin generates the hidden "form-nonce" input field for every form and sets id="form-nonce" and name="form-nonce", so my page is not valid due to duplicated IDs.

My question is: is there the possibility to set the id and the name of a form nonce inside the frontmatter of a page and override the default values? Is my approach with the newsletter form incorrect?

@rhukster
Copy link
Member

rhukster commented Mar 9, 2017

Duplicate: #115

Already fixed for next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants