Remove a field from PDF file

add_filter( ‘frm_pdfs_fields_for_export’, ‘remove_field_from_pdf’, 10, 2); function remove_field_from_pdf( $fields, $args ) { if ( 10 == $args[‘entry’]->id ) { // Replace 10 with your entry ID foreach ( $fields as $index => $field ) { if ( 13 == $field->id )…Continue reading

Add apostrophe for phone numbers

add_filter( ‘frm_export_content’, function( $cell ) { if ( ‘+’ === substr( $cell, 0, 1 ) && ! cell_is_phone_number( $cell ) ) { return “‘” . $cell; } return $cell; } ); function cell_is_phone_number( $cell ) { $substring = substr( $cell,…Continue reading

Include only draft entries for specific dynamic field

add_filter( ‘frm_dynamic_field_include_drafts’, ‘specific_dynamic_include_draft’, 10, 2 ); function specific_dynamic_include_draft( $include, $args ) { if ( 13 == $args[‘field’][‘id’] ) { // Replace 13 with the ID of the dynamic field return ‘drafts_only’; // Or return FrmProDynamicFieldsController::DRAFTS_ONLY; } return $include; }Continue reading

Change priority order

add_filter(‘frm_api_action_options’, ‘change_priority_order’) function change_priority_order( $options ) { $options[‘priority’] = 50; return $options; }Continue reading

Change ID used for graph

add_filter( ‘frm_graph_id’ , ‘change_graph_id’ ); function change_graph_id( $id ) { if ( ‘_frm_column1’ === $id ) { return ‘first_column_graph’; } return $id; }Continue reading

Order dates in lookup

add_filter( ‘frm_order_lookup_options’, ‘order_lookup_date_options’ ); function order_lookup_date_options( $options ) { usort( $options, ‘date_sort’ ); return $options; } function date_sort($a, $b) { return strtotime($a) – strtotime($b); }Continue reading