How to Change Field Names and Labels in the CFDB7 Dashboard
Content
Many users of the 'Contact Form 7 Database Addon – CFDB7' find that the column headers in the plugin's dashboard display the raw field names from their Contact Form 7 forms (e.g., your-name, your-email). This can be confusing for clients or site admins who expect to see more user-friendly labels like "Name" or "Email Address."
Why This Happens
The CFDB7 plugin is designed to store and display data based on the field names defined within each Contact Form 7 form. It does not natively use the field's placeholder text or label for display purposes in the admin table. The plugin's core functionality is to capture and present the submitted data accurately, which means it relies on the programmatic identifiers for each field.
Common Solutions
1. Rename Your Form Fields
The most straightforward method is to change the field names in your Contact Form 7 form to be more user-friendly from the start. For example, instead of using [text your-name], you could use [text name]. The plugin will then display "name" as the column header, which is much cleaner.
2. Use a Third-Party Plugin for Hidden Fields
If you need to pass a specific value (like a user ID or post title) that isn't part of the main form, you can use a companion plugin to create hidden fields. For instance, the Contact Form 7 Simple Hidden Field plugin allows you to easily add hidden fields with custom names and values. This can help keep your primary form field names clean and meaningful.
3. Custom Coding (Advanced)
For developers, the data stored by CFDB7 is serialized PHP. This means it is possible to write custom code to transform the field names after they are submitted or before they are displayed. However, this requires a good understanding of WordPress hooks and PHP. The 'Contact Form 7 Database Addon – CFDB7' team has not included a built-in hook for modifying admin column labels, so this approach involves directly interacting with the plugin's database output.
Important Limitations
It is important to note that, based on community feedback, the plugin does not currently have a built-in setting or UI to manually override field names or select which columns are displayed in the admin overview. Many requests for frontend display shortcodes, custom column sorting, and changing admin menu labels also require custom development work, as these features are not part of the plugin's core offering.
For most users, proactively naming form fields with clear, simple identifiers is the most effective long-term strategy for a clean and understandable dashboard.
Related Support Threads Support
-
Add user id to the displayed form data in dashboardhttps://wordpress.org/support/topic/add-user-id-to-the-displayed-form-data-in-dashboard/
-
Function to display saved entries in PHP templatehttps://wordpress.org/support/topic/function-to-display-saved-entries-in-php-template/
-
Acceptance Field (again)https://wordpress.org/support/topic/acceptance-field-again/
-
Display submitted form entries on a user pagehttps://wordpress.org/support/topic/display-submitted-form-entries-on-a-user-page/
-
Table Header “_wpcf7cf_hidden_groups” …https://wordpress.org/support/topic/table-20/
-
Store Post Titlehttps://wordpress.org/support/topic/store-post-title/
-
Does this plugin have shortcodehttps://wordpress.org/support/topic/does-this-plugin-have-shortcode/
-
Display data on Front endhttps://wordpress.org/support/topic/display-data-on-front-end/
-
Where do the field names come fromhttps://wordpress.org/support/topic/where-do-the-field-names-come-from/
-
good works. thankshttps://wordpress.org/support/topic/good-works-thanks/
-
Custom admin columnhttps://wordpress.org/support/topic/custom-admin-column/
-
I need help about Change Field Name Manuallyhttps://wordpress.org/support/topic/i-need-help-about-change-field-name-manually/
-
uppercase all the datahttps://wordpress.org/support/topic/uppercase-all-the-data/
-
Modify Admin Label?https://wordpress.org/support/topic/modify-admin-label/
-
format of form_valuehttps://wordpress.org/support/topic/format-of-form_value/
-
Want to put label instead of filed IDhttps://wordpress.org/support/topic/want-to-put-label-instead-of-filed-id/
-
using data on front endhttps://wordpress.org/support/topic/using-data-on-front-end/
-
how to get the field placeholder values as title in dashboardhttps://wordpress.org/support/topic/how-to-get-the-field-placeholder-values/
-
Display in Proper Tablehttps://wordpress.org/support/topic/display-in-proper-table/
-
Request for Displaying Form Data on Main Pagehttps://wordpress.org/support/topic/request-for-displaying-form-data-on-main-page/
-
Date formathttps://wordpress.org/support/topic/date-format-143/
-
Custom Order by Filter in columshttps://wordpress.org/support/topic/custom-order-by-filter-in-colums/
-
Select columns for admin-viewhttps://wordpress.org/support/topic/select-columns-for-admin-view/
-
Date formathttps://wordpress.org/support/topic/date-format-182/
-
Is there any shortcode to show the form valuehttps://wordpress.org/support/topic/is-there-any-shortcode-to-show-the-form-value/