Remove ID Column on Export

add_filter( ‘frm_csv_columns’, ‘remove_id_column’, 10, 2 ); function remove_id_column( $headings, $form_id ) { if ( $form_id == 5 ) { //change 5 to your Form ID unset( $headings[‘id’] ); //change id to the header of the column to be removed }…Continue reading

Change the name of a column

add_filter( ‘frm_csv_columns’, ‘change_column_name’, 10, 2 ); function change_column_name( $headings, $form_id ) { $new_labels = array( 25 => ‘New label’, 26 => ‘Another label’ ); //change 25 and 26 to your Field IDs, and the labels to the ones you would…Continue reading

Auto-Map Column Headers

add_filter(‘frm_map_csv_field’, ‘auto_map_my_fields’, 10, 3); function auto_map_my_fields($selected, $field, $header){ if ( $field->form_id == 5 ) { // change 5 to the ID of your form // change 25 and 26 to your field ids, and the text to the CSV headers…Continue reading

Prevent Line Break

add_filter(‘frm_csv_line_break’, ‘prevent_csv_line_break’); function prevent_csv_line_break(){ return ‘<br />’; //change this to whatever you’d like to use in place of line breaks }Continue reading

Change Date Format

add_filter(‘frm_csv_date_format’, ‘change_my_csv_format’); function change_my_csv_format($format){ $format = ‘d/m/Y’; return $format; }Continue reading

Add more templates

add_filter( ‘frm_default_templates_files’, ‘add_more_default_templates’, 30 ); function add_more_default_templates( $template_files ) { $template_files[] = dirname( __FILE__ ) . ‘/yourxml.xml’; // make sure the path to your XML file is correct return $template_files; }Continue reading

Move legend

add_filter(‘frm_google_chart’, ‘frm_move_graph_legend’, 10, 2); function frm_move_graph_legend($options, $args){ $options[‘legend’] = array(‘position’ => ‘top’, ‘textStyle’ => array(‘fontSize’ => 10 ) ); $options[‘legend’][‘maxLines’] = 4; return $options; }Continue reading

Order by Month

add_filter(‘frm_view_order’, ‘change_view_order’, 10, 2); function change_view_order($query, $args){ if ( $args[‘display’]->ID == 2412 ) { //replace 2412 with you Field ID $query[‘order’] = ‘ORDER BY MONTH(it.created_at) ASC’; } return $query; }Continue reading