Limit number of times a value can be selected

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

Filter Dynamic field by user meta

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

Change message

add_filter( ‘frm_global_failed_msg’, ‘change_failed_message’ ); function change_failed_message( $message ) { $message = ‘place new message here’; return $message; }Continue reading

Remove “View more” link

add_filter( ‘frm_export_content’, ‘change_exported_cell’ ); function change_exported_cell( $content ) { $content = str_replace( ‘View more’, ‘ ‘, $content ); return $content; }Continue reading

Change the login message

add_filter( ‘frm_global_login_msg’, ‘change_message’ ); function change_message( $message ) { $message = ‘place new message here’; return $message; }Continue reading

Force Success Message and Change Message

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