Title: Modify {all_fields} output
Last modified: February 12, 2021

---

# Modify {all_fields} output

 *  Resolved [greenrooster](https://wordpress.org/support/users/greenrooster/)
 * (@greenrooster)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/modify-all_fields-output/)
 * Is there a way to modify the {all_fields} or {all_non_empty_fields} to have them
   not export as ordered lists? I can get around this by manually inputting all 
   fields I want exported into the email notification, but I would prefer a simpler,
   more automatic method. I appreciate the help!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [Jair – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport15/)
 * (@wpmudevsupport15)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/modify-all_fields-output/#post-14049373)
 * Hey there, [@greenrooster](https://wordpress.org/support/users/greenrooster/),
   thank you for reaching out.
 * I was wondering if a table would be a good way of presenting this information?
   If so, I have found a snippet we created a while back which does exaclty that,
   it adds the {all_fileds} in a table.
 * Please create a new MU plugin file like
 * wp-content/mu-plugins/forminator-email-table-view.php
 * (just create the /mu-plugins/ folder if it doesn’t exist already)
 * and insert in there the exact snippet:
 *     ```
       <?php
   
       add_filter( 'forminator_get_formatted_form_entry', function( $html, $custom_form, $data, $entry, $ignored_field_types ){
   
       $ignored_field_types = Forminator_Form_Entry_Model::ignored_fields();
   
       $form_fields         = $custom_form->get_fields();
   
       $table_rows             = array();
   
       if ( is_null( $form_fields ) ) {
   
       $form_fields = array();
   
       }
   
       foreach ( $form_fields as $form_field ) {
   
       $field_type = $form_field->__get( 'type' );
   
       if ( in_array( $field_type, $ignored_field_types, true ) ) {
   
       continue;
   
       }
   
       $label = $form_field->get_label_for_entry();
   
       $value = render_entry( $entry, $form_field->slug );
   
       $table_rows[ $label ] = $value;
   
       }
   
       $table_head = array_keys( $table_rows );
   
       $table_body = array_values( $table_rows );
   
       array_walk( $table_head, function( &$content, $key ) {
   
       $content = "<th><strong>{$content}</strong></th>";
   
       });
   
       array_walk( $table_body, function( &$content, $key ) {
   
       $content = "<td>{$content}</td>";
   
       });
   
       $html = '<table>';
   
       $html .= "<tr>";
   
       $html .= "<thead>" . implode( '', $table_head ) ."</thead>";
   
       $html .= "<tr>";
   
       $html .= "<tr>";
   
       $html .= "<tbody>" . implode( '', $table_body ) ."</tbody>";
   
       $html .= "<tr>";
   
       $html .= '</table>';
   
       return $html;
   
       }, 20, 5 );
       ```
   
 * Let us know how it goes.
 * Regards,
 * Jorge
 *  Thread Starter [greenrooster](https://wordpress.org/support/users/greenrooster/)
 * (@greenrooster)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/modify-all_fields-output/#post-14057885)
 * Cool! Thank you [@wpmudevsupport15](https://wordpress.org/support/users/wpmudevsupport15/),
   for this. I will try this out as soon as I am able.
 *  Thread Starter [greenrooster](https://wordpress.org/support/users/greenrooster/)
 * (@greenrooster)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/modify-all_fields-output/#post-14059766)
 * [@wpmudevsupport15](https://wordpress.org/support/users/wpmudevsupport15/) This
   does exactly as I need it to. Thank you! I’m going to close this ticket now.
 *  Plugin Support [Jair – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport15/)
 * (@wpmudevsupport15)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/modify-all_fields-output/#post-14060287)
 * Thank you for letting us know [@greenrooster](https://wordpress.org/support/users/greenrooster/)
 * Feel free to start a new ticket if you need further help.
 * Regards,
 * Jorge

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Modify {all_fields} output’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Jair – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport15/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/modify-all_fields-output/#post-14060287)
 * Status: resolved