Show the users’ last name in the in user ID fields
add_filter(‘frm_user_id_display’, ‘frm_show_user_last_name’); function frm_show_user_last_name() { return ‘last_name’; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter(‘frm_user_id_display’, ‘frm_show_user_last_name’); function frm_show_user_last_name() { return ‘last_name’; }Continue reading
add_filter( ‘frm_run_honeypot’, ‘__return_false’ );Continue reading
add_filter( ‘frm_run_honeypot’, ‘frm_disable_honeypot’ ); function frm_disable_honeypot( $enabled, $atts ) { if ( $atts[‘form’]->id === 5 ) { //change 5 to the ID of your form $enabled = false; } return $enabled; }Continue reading
add_filter( ‘frm_get_default_value’, ‘frm_set_random_number’, 10, 3 ); function frm_set_random_number( $new_value, $field, $is_default ) { if ( $field->id == 11610 && $is_default ) { //change 11610 to the ID of the field $new_value = rand( 100000, 999999 ); //change 100000 to the…Continue reading
add_filter( ‘frm_validate_field_entry’, ‘frm_custom_limit’, 10, 3 ); function frm_custom_limit( $errors, $posted_field, $posted_value ) { if ( $posted_field->id == 3734 && !is_admin() ) { //change 3734 to the ID of the field you want to limit $entries_with_selected_value = FrmEntryMeta::get_entry_metas_for_field( 3734, ”, ”,…Continue reading
add_filter( ‘frm_setup_new_fields_vars’, ‘filter_dfe_options_by_user_meta’, 25, 2 ); add_filter( ‘frm_setup_edit_fields_vars’, ‘filter_dfe_options_by_user_meta’, 25, 2 ); function filter_dfe_options_by_user_meta( $values, $field ) { if ( $field->id == 11483 && ! empty( $values[‘options’] ) ) {//Replace 11483 with the ID of your Dynamic field $temp =…Continue reading
add_filter( ‘frm_global_failed_msg’, ‘change_failed_message’ ); function change_failed_message( $message ) { $message = ‘place new message here’; return $message; }Continue reading
add_action( ‘frmapi_post_response’, ‘frm_save_api_response’, 10, 3 ); function frm_save_api_response( $response, $entry, $form_action ) { $body = json_decode($response[“body”], true); $returned_id = $body[“CHANGEME”]; // this line will change based on the API you are sending to if ( $returned_id ) { FrmProEntryMeta::update_single_field( array(…Continue reading
add_filter( ‘frm_field_value_saved’, ‘my_custom_function’, 10, 3 ); function my_custom_function( $option_name, $opt_key, $field ) { if ( $field[‘id’] == 11375 ) { // Change 11375 to the ID of your radio button /checkbox $date = date( ‘l’ ); if ( $date ===…Continue reading
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