Rename timestamp column

add_filter( ‘frm_export_csv_headings’, ‘rename_timestamp_column_in_csv_export’ ); function rename_timestamp_column_in_csv_export( $headings ) { $headings[‘created_at’] = ‘New Timestamp Column Name’; return $headings; }Continue reading

Remove IP column

add_filter( ‘frm_export_csv_headings’, ‘remove_ip_from_csv_export’ ); function remove_ip_from_csv_export( $headings ) { unset( $headings[‘ip’] ); return $headings; }Continue reading

Add custom display format option

add_filter( ‘frm_radio_display_format_options’, ‘custom_radio_display_format_options’, 10, 2); function custom_radio_display_format_options( $options ) { $options[‘custom-format’] = array( ‘text’ => ‘Custom format’, ‘svg’ => ‘custom-icon-in-option’, // You can use filter `frm_images_dropdown_option_image` to change the image or icon later. ); }Continue reading

Add custom attribute to radio images dropdown

add_filter( ‘frm_radio_display_format_args’, ‘custom_radio_display_attribute’, 10, 2 ); function custom_radio_display_attribute( $args, $method_args ) { $args[‘input_attrs’][‘data-custom-value’] = ‘Custom value’; return $args; }Continue reading

Specify a field to include

add_filter( ‘frm_entry_values_include_fields’, ‘specify_include_fields’, 10, 2 ); function specify_include_fields( $field_ids, $atts ) { $field_ids[] = 13; return $field_ids; }Continue reading

Hide a specific field in the lookup selection

add_filter(‘frm_pro_fields_in_lookup_selection’, ‘hide_specific_field_lookup_selection’, 10, 2); function hide_specific_field_lookup_selection( $fields, $args ) { foreach ( $fields as $index => $field ) { if ( 13 == $field->id ) { //Replace 13 with the ID of your field unset( $fields[ $index ] ); }…Continue reading

Add a custom value to the arguments

add_filter( ‘frm_images_dropdown_args’, ‘add_custom_args_image_dropdown’, 10, 2); function add_custom_args_image_dropdown( $new_args, $args ) { $new_args[‘your_custom_args’] = ‘Your custom args’; return $new_args; }Continue reading

Save the entry Key in a field

add_action( ‘frm_after_create_entry’, ‘frm_add_entry_id’, 42, 2 ); function frm_add_entry_id( $entry_id, $form_id ) { if ( $form_id == 221 ) { //change 221 to the ID of your form $entry = FrmEntry::getOne( $entry_id ); $key = $entry->item_key; FrmEntryMeta::add_entry_meta( $entry_id, 1819, “”, $key);//change…Continue reading

Add custom HTML attribute to radio inputs

add_filter( ‘frm_images_dropdown_input_attrs’, ‘add_html_attrs_radio_image_dropdown’, 10, 2); function add_html_attrs_radio_image_dropdown( $input_attrs, $args ) { $input_attrs .= ‘ data-custom-value=”Custom value”‘; return $input_attrs; }Continue reading

Use the image URL

add_filter( ‘frm_images_dropdown_option_image’, ‘use_url_image_dropdown’, 10, 2); function use_url_image_dropdown( $image, $args ) { if ( ! empty( $args[‘image_url’] ) ) { return ‘<img src=”‘ . esc_url( $args[‘image_url’] ) . ‘” />’; } return $image; }Continue reading