Add a class to the validation message div
add_filter(‘frm_form_error_class’, ‘frm_add_error_class’, 10, 1); function frm_add_error_class($class){ $class .= ‘ my_form_error_class’; return $class; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter(‘frm_form_error_class’, ‘frm_add_error_class’, 10, 1); function frm_add_error_class($class){ $class .= ‘ my_form_error_class’; return $class; }Continue reading
add_filter(‘frm_success_filter’, ‘force_change_success_message’, 10, 2); function force_change_success_message( $type, $form ) { if ( $form->id == 5 && isset( $_POST ) && isset( $_POST[‘frm_action’] )) { //change 5 to the ID of your form $type = ‘message’; $form->options[‘success_msg’] = “The form has…Continue reading
add_filter( ‘frmpro_fields_replace_shortcodes’, ‘frm_show_list’, 10, 4 ); function frm_show_list( $replace_with, $tag, $atts, $field ) { if ( ! isset( $atts[‘show_list’] ) ) { return $replace_with; } $sep = isset( $atts[‘sep’] ) ? $atts[‘sep’] : ‘<br>’; return str_replace( ‘, ‘, $sep, $replace_with…Continue reading
add_filter( ‘frm_export_csv_table_heading’, ‘frm_change_csv_export_heading’, 10, 2 ); function frm_change_csv_export_heading( $heading, $view ) { if ( $view->ID !== 65 ) { return $heading; } return ‘<tr><th>Name</th><th></th><th>Title</th></tr>’ }Continue reading
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
add_filter( ‘frm_export_view_link_expiration’, ‘frm_change_link_expiration_hours’ ); function frm_change_link_expiration_hours() { return 72; }Continue reading
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
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
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
add_filter(‘frm_setup_new_fields_vars’, ‘frm_reorder_options’, 30, 2); function frm_reorder_options($values, $field){ if ( $field->id == 13676 ) {//Replace 13676 with the ID of your field shuffle($values[‘options’]); // sort the values here } return $values; }Continue reading