Hi,
a bug report.
Guestbook version 4.0.2
Form -> Display Content In Form set to "Yes (required)"
The content field doesn't have a `required` attribute in DOM, only "*" appears near the field's name, and the verification isn't performed. The form could be sent to the server empty, but it won't be posted.
I'm running reCaptcha and if it is not checked the verification is skipped and the form is reloaded.
Content is set to required but verification is not happening
-
- Phoca Enthusiast
- Posts: 50
- Joined: 01 Sep 2012, 10:27
- Jan
- Phoca Hero
- Posts: 48236
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Content is set to required but verification is not happening
Hi, yes, unfortunately, there is no simple way to apply standard HTML required feature on field which is based on editor, so there is only server protection, not frontend.
This is different when standard textarea is set in options:
Jan
This is different when standard textarea is set in options:
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 50
- Joined: 01 Sep 2012, 10:27
Re: Content is set to required but verification is not happening
Hello,
as I understand the server side must be implemented individually, guestbook doesn't support it out of box?
as I understand the server side must be implemented individually, guestbook doesn't support it out of box?
- Jan
- Phoca Hero
- Posts: 48236
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Content is set to required but verification is not happening
Hi, the server side protection works for both - editor or textarea. The HTML browser side only works for the textarea because the HTML required feature only work with standard input fields.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 50
- Joined: 01 Sep 2012, 10:27
Re: Content is set to required but verification is not happening
Understood, thank very you!
But what about recaptcha validation?
"I'm running reCaptcha and if it is not checked the verification is skipped and the form is reloaded."
But what about recaptcha validation?
"I'm running reCaptcha and if it is not checked the verification is skipped and the form is reloaded."
- Jan
- Phoca Hero
- Posts: 48236
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Content is set to required but verification is not happening
Hi, this recaptcha works this way, it is validated on server, so even here, there is no html required validation.
Jan
Jan
If you find Phoca extensions useful, please support the project