I am new to volto and is the honeypot add-on work with the contact form in volto front end?
Our any suggestions on anti spam of public forms?
Thanks
I am new to volto and is the honeypot add-on work with the contact form in volto front end?
Our any suggestions on anti spam of public forms?
Thanks
Will this protect the contact form build-in volto?
I don't know.
For custom forms you need to install volto-form-block which has built-in and documented captcha support
You need to install an addon in the backend to provide captcha support to the frontend.
If I am using package.json in add it, what should I put here? the setting below is not working.
},
"addons": [
"@collective/volto-form-block",
"@kitconcept/volto-light-theme"
],
"dependencies": {
"@collective/volto-form-block": "",
"@kitconcept/volto-light-theme": ""
},
Install docs say that the package is called volto-form-block, you don't have to add @collective
Thanks for your tips
But it do got an error
ERROR Invalid razzle.config.js file.
Error: Cannot find module 'volto-form-block'
I did the following:
uvx cookieplone
For the frontend:
frontend/packages/volto-test-project/package.json and added volto-form-block as a dependency and added also in addons.make install in the frontend folder.For the backend:
backend/pyproject.toml and added collective.volto.formsupport and collective.z3cform.norobots in the dependencies key.make install in the backend folder.Start the project (in 2 separated terminals)
make start in the backend foldermake start in the frontend folderInstall and prepare the site:
Add the form
Go to the home page, edit the page, and add a Form block. On the right side, you have the Block settings, where you can enable the usage of norobots captcha.
In order to add your own questions, you can go to the control panel and add your questions there (http://localhost:3000/controlpanel/collective.z3cform.norobots.settings).
You have the example project I created with the said add-ons here: GitHub - erral/test-project
Thanks alot it work, I missed the step make install.
But I have face another issue and don't know if this happened to you too.
When I click the field as required (field other than the first one) it just changed the required for the first field.
if you have such an issue, report it with full details in the volto-form-block GitHub issue tracker