Change table style in entry view
add_filter( ‘frm_entries_show_args’, ‘change_entries_table_style’, 10, 2); function change_entries_table_style( $args ) { $args[‘class’] = ‘frm-grid’; return $args; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘frm_entries_show_args’, ‘change_entries_table_style’, 10, 2); function change_entries_table_style( $args ) { $args[‘class’] = ‘frm-grid’; return $args; }Continue reading
add_filter( ‘frm_protect_temporary_file’, ‘__return_false’ );Continue reading
add_filter( ‘frm_pro_fields_in_summary_values’, ‘exclude_field_from_summary’, 10, 2 ); function exclude_field_from_summary( $fields, $args ) { $target_form_id = 302; // Replace 302 with ID of your form if ( $target_form_id !== (int) $args[‘form_id’] ) { return $fields; } $field_id_to_remove = 1460; // Replace 1460…Continue reading
add_filter(‘frm_csv_filename’, ‘change_csv_filename_attachment’, 10, 3); function change_csv_filename_attachment( $filename, $form, $args ) { if ( empty( $args[‘meta’] ) ) { return $filename; } $target_action_id = 158; // change 158 with the email form action ID $meta = $args[‘meta’]; if ( ! empty(…Continue reading
add_filter( ‘frm_entry_formatter_class’, ‘change_entry_formatter_class’, 10, 2); function change_entry_formatter_class($formatter_class, $atts) { if ( 10 == $atts[‘form_id’] ) { $formatter_class = ‘YourCustomEntryFormatter’; } return $formatter_class; }Continue reading
add_filter( ‘frm_entry_values_fields’, ‘sort_remove_fields’, 10, 2 ); function sort_remove_fields( $fields, $args ) { // Do anything with the $fields. // Your code here… return $fields; }Continue reading
add_filter( ‘frm_entry_values_exclude_fields’, ‘specify_exclude_fields’, 10, 2 ); function specify_exclude_fields( $field_ids, $atts ) { $field_ids[] = 3013; return $field_ids; }Continue reading
add_filter(‘frm_google_chart’, ‘frm_add_haxis_options’, 10, 2); function frm_add_haxis_options( $options, $atts ){ $options[‘hAxis’]= array( ‘textStyle’ => array( ‘color’ => ‘green’, ‘fontSize’ => ’18’, ‘bold’=> true ) ); return $options; }Continue reading
add_filter( ‘frm_fields_for_csv_export’, ‘remove_specific_field_from_csv_export’, 10, 2 ); function remove_specific_field_from_csv_export( $fields, $args ) { $target_form_id = 220; // change 220 to the ID of the form if ( $target_form_id === (int) $args[‘form’]->id ) { $target_field_id = 1204; // change 1204 to the…Continue reading
add_filter( ‘frm_validate_entry’, ‘event_registration’, 20, 2 ); function event_registration( $errors, $values ) { if ( $values[‘form_id’] !== 304 ) {//Change 304 to the ID of your form return $errors; } $registration_field = 3080;// Set this field to the id of the…Continue reading