Content is set to required but verification is not happening

Phoca Guestbook - creating guestbooks in Joomla! CMS
01Kuzma
Phoca Enthusiast
Phoca Enthusiast
Posts: 50
Joined: 01 Sep 2012, 10:27

Content is set to required but verification is not happening

Post by 01Kuzma »

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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Content is set to required but verification is not happening

Post by Jan »

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:

Image

Jan
If you find Phoca extensions useful, please support the project
01Kuzma
Phoca Enthusiast
Phoca Enthusiast
Posts: 50
Joined: 01 Sep 2012, 10:27

Re: Content is set to required but verification is not happening

Post by 01Kuzma »

Hello,
as I understand the server side must be implemented individually, guestbook doesn't support it out of box?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Content is set to required but verification is not happening

Post by Jan »

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
If you find Phoca extensions useful, please support the project
01Kuzma
Phoca Enthusiast
Phoca Enthusiast
Posts: 50
Joined: 01 Sep 2012, 10:27

Re: Content is set to required but verification is not happening

Post by 01Kuzma »

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."
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Content is set to required but verification is not happening

Post by Jan »

Hi, this recaptcha works this way, it is validated on server, so even here, there is no html required validation.

Jan
If you find Phoca extensions useful, please support the project
Post Reply