Is the honeypot add-on work with volto contact form?

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.

1 Like

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
  • Selected the 1st option (Plone Project)
  • Named it test project and left the other options with the default ones.

For the frontend:

  • I went to frontend/packages/volto-test-project/package.json and added volto-form-block as a dependency and added also in addons.
  • Then I run make install in the frontend folder.

For the backend:

  • I went to backend/pyproject.toml and added collective.volto.formsupport and collective.z3cform.norobots in the dependencies key.
  • Then I run make install in the backend folder.

Start the project (in 2 separated terminals)

  • run make start in the backend folder
  • run make start in the frontend folder
  • Plone starts in localhost:8080, Volto starts in localhost:3000.

Install and prepare the site:

  • Open localhost:8080 and create a new Plone Site (volto) site (with the default options).
  • Open localhost:3000, login go the the addons controlpanel (http://localhost:3000/controlpanel/addons) and install "Volto: Form support" and "norobots captcha field".

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