• Hi,
    in the list of submitted forms, I see only 5 columns, I would like to add more.

    I see only
    Name | Surname | |Telefono | Email | Date

    But i have these fieds in my Contact Form
    [your-name][your-surname][telefono][your-email][linkedin][titolo-di-studio][voto][checked][specifica-titolo-studio][annidiesperienzalavorativa][file-990][datipersonali][accettazioneprivacy][dynamichidden-445][url-pagina-riferimento]

    I would like to add
    [dynamichidden-445] or more

    I added a url to screenshot
    https://www.lorenzopoggioli.it/daje.jpg

    Thanks!
    Regards

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • To make things simple, what you will need to do is go into the following folder directory: /public_html/wp-content/plugins/contact-form-cfdb7/inc/admin-subpage.php

    In this file, look for line 147 with the following code:

    if ( sizeof($columns) > 4) break;

    Change the default “4” to the number of columns you wish to display. However, note that increasing this number to anything larger than 8 – 10 could make the result a clutter mess on the admin side. This also depends on what that field is.

    Can I rearrange the column displayed?
    – Yes….well kind of. If displaying more than 8 isn’t resulting in displaying the column you want, you will have to re arrange the display structure in Contact Form 7’s text field in order to make it display.

    I will update this if I find another method to this.

    Well….As you may have guessed it I figured out how to add a new column and “customize” it. It’s quite simple…

    In the same directory: /public_html/wp-content/plugins/contact-form-cfdb7/inc/admin-subpage.php.You will be working to make the following changes.

    Starting on line: 149 locate the following code
    $columns['form-date'] = 'Date Submitted';

    Right above this line you will be adding your custom fields that you created in Contact Form 7. So for example:

     }
       $columns['your-message'] = 'Message';
       $columns['form-date'] = 'Date Submitted';
    }

    You can change the column title to what every you want $columns['your-message'] = 'Column Title';. From here you can re arrange the columns display order.

    Hope this helps!

    NOTE: in order for this to work properly the field name $columns[‘fieldname’] MUST match that of your Contact Form 7.

    RECOMMENDATION: If you plan on doing this I would recommend setting the code in my previous posting to 2 and then call/add the columns in the order you wish to display them. The higher the number the more columns will display resulting in duplicates.

    • This reply was modified 5 years, 4 months ago by bcr8tiv.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show another column’ is closed to new replies.