Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
When creating a new form, it includes a subject and message field by default, as well as Name and Email which are required. These fields are not needed on all forms but the only way to remove them is to hide them from the form display.
Proposed resolution
Allow forms to be created without a subject and message field.
Remaining tasks
User interface changes
I think this will require removing the "autoreply" component from config as we can't assume there will be an email address.
In webform, you can configure an autoreply by sending an email to the value of an email field, if there is one.
Comments
Comment #2
larowlanComment #3
pameeela CreditAttribution: pameeela commentedComment #4
pameeela CreditAttribution: pameeela commentedComment #7
caldenjacobs CreditAttribution: caldenjacobs commentedI agree that this is essential — as it is I'm patching core to remove the Subject and Message fields, which feels pretty ridiculous.
Comment #8
caldenjacobs CreditAttribution: caldenjacobs commentedComment #12
Ruuds CreditAttribution: Ruuds at Groowup Digital Agency commentedI also stumbled on this problem and have just created a tiny module which adds the name/mail/message fields to the 'Manage fields' page so you can change their labels and descriptions and alter the required-flag See https://www.drupal.org/project/contact_default_fields_override. Maybe someone will find this useful.
Comment #17
ecj CreditAttribution: ecj commented@Ruuds: works like a charm, saved my day! Thanks.
contact_default_fields_override