Simple Contact Form: Add more fields

I have just installed “Simple Contact Form” and I want to add extra fileds in the form. For example I would like to add a checkbox for someone to enlist for our newsletter. But I was baffled at the different forms in the source code. Where do I have to make the changes and what should I add for a checkbox?

Hello, the elements for the Simple Contact Form can be found here. You should be able to add a new field div element there and echo a $this->formLabel() and $this->formCheckbox() in the same way the other input fields are set up.

You can take a look at how formCheckbox is used in other areas of Omeka Classic, or see some documentation on the parameters here.

Hope this helps!

1 Like

Thanks to your instructions Matthew, it was a breeze!

1 Like