Remove confidential params from export View link

add_filter( ‘frm_export_view_query_args’, ‘frm_filter_out_confidential_args’, 10, 2 ); function frm_filter_out_confidential_args( $query_args, $view_id ) { if ( $view_id !== 82 ) { return $query_args; } $params_to_remove = array( ‘secret’, ‘private_id’ ); foreach ( $params_to_remove as $param ) { unset( $query_args[ $param ] );…Continue reading

Run all shortcodes

add_filter( ‘frm_action_logic_value’, ‘frm_change_logic_value’ ); function frm_change_logic_value( $logic_value ) { $logic_value = do_shortcode( $logic_value ); return $logic_value; }Continue reading

Format an email address

add_filter( ‘frm_display_email_value_custom’, ‘frm_email_val’, 15, 2 ); function frm_email_val( $value, $atts ) { if ( $atts[‘field’]->id == 500 ) { // Change 500 to the ID of your email field $value = ‘<a href=”mailto:’ . $value . ‘”>’ . $value .…Continue reading

Disallow duplicate entries in a specific form for one year

add_filter(‘frm_time_to_check_duplicates’, ‘change_duplicate_time_limit_one_form’, 10, 2); function change_duplicate_time_limit_one_form( $time_limit, $entry_values ) { if ( $entry_values[‘form_id’] == 100 ) { //change 100 to your form ID $time_limit = 31536000; } return $time_limit; }Continue reading

Remove Label Column

add_filter( ‘frm_csv_columns’, ‘remove_label_column’, 10, 2 ); function remove_label_column( $headings, $form_id ) { if ( $form_id == 326 ) { //change 326 to your Form ID unset( $headings[‘4002_label’] ); //change 4002 to the field ID using separate values } return $headings;…Continue reading

Disable blacklist check for a single form

add_filter( ‘frm_check_blacklist’, ‘limit_check_blacklist’, 10, 2 ); function limit_check_blacklist($check, $atts){ if ( $atts[‘form_id’] == 25 ) { //replace 25 with the id of the form you would like to disable the blacklist check on. $check = false; } return $check; }Continue reading

Randomize Field Order

add_filter( ‘frm_get_paged_fields’, ‘randomize_form_fields’, 20, 2 ); function randomize_form_fields( $fields, $form_id ){ if ( $form_id == 25 ) { //change 25 to the id of the form to change shuffle( $fields ); } return $fields; }Continue reading