Load Email Settings with AJAX

add_filter(‘frm_email_control_settings’, ‘frm_load_email_settings_with_ajax’); function frm_load_email_settings_with_ajax($settings){ $settings[‘ajax_load’] = true; return $settings; }Continue reading

Change x-axis labels

add_filter( ‘frm_graph_data’, ‘change_my_graph_labels’, 10, 2 ); function change_my_graph_labels( $data, $atts ) { if ( isset( $atts[‘title’] ) && $atts[‘title’] == ‘My graph’ ) { $new_labels = array( ‘First label’, ‘Second label’, ‘Third label’ ); foreach ( $new_labels as $key =>…Continue reading

Send submitted entry to another site

add_filter(‘frm_entries_before_create’, ‘yourfunctionname’, 30, 2); function yourfunctionname( $errors, $form ) { if($form->id == 5){ //replace 5 with the id of the form $args = array(); if(isset($_POST[‘item_meta’][30])) //replace 30 and 31 with the appropriate field IDs from your form $args[‘data1’] = $_POST[‘item_meta’][30];…Continue reading

Check If Value Has Changed

add_filter( ‘frm_pre_update_entry’, ‘check_if_value_changed’, 10, 2 ); function check_if_value_changed( $values, $entry_id ) { $field_id = 125; // change 125 to the id of the field to check $previous_value = FrmEntryMeta::get_entry_meta_by_field($entry_id, $field_id); if ( isset( $values[‘item_meta’][ $field_id ] ) && $values[‘item_meta’][ $field_id…Continue reading

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