Page 1 of 1

Content is set to required but verification is not happening

Posted: 27 Jan 2023, 15:13
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.

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

Posted: 30 Jan 2023, 17:03
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

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

Posted: 30 Jan 2023, 17:23
by 01Kuzma
Hello,
as I understand the server side must be implemented individually, guestbook doesn't support it out of box?

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

Posted: 01 Feb 2023, 01:19
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

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

Posted: 01 Feb 2023, 18:31
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."

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

Posted: 03 Feb 2023, 18:50
by Jan
Hi, this recaptcha works this way, it is validated on server, so even here, there is no html required validation.

Jan