Add custom HTML to submit button

add_filter( ‘frm_submit_button_html’, ‘add_custom_html_to_submit_button’, 10, 2 ); function add_custom_html_to_submit_button( $button, $args ) { $target_form_id = 220; // change 220 to the ID of the form if ( $target_form_id === (int) $args[‘form’]->id ) { // put HTML before the submit button $button…Continue reading

Skip validation for a specific field

add_filter( ‘frm_fields_to_validate’, ‘skip_validation_for_a_specific_field’, 10, 2 ); function skip_validation_for_a_specific_field( $fields, $args ) { $target_form_id = 220; // change 220 to the ID of the form if ( $target_form_id === (int) $args[‘values’][‘form_id’] ) { $field_id_to_remove = 1204; // change 1204 to the…Continue reading

Add custom HTML attributes to each option

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

Add custom heading

add_filter( ‘frm_export_csv_headings’, ‘add_custom_heading_in_csv_export’ ); function add_custom_heading_in_csv_export( $headings ) { $headings[‘an_extra_column’] = ‘New column name’; return $headings; }Continue reading

Hide a specific field in the dynamic selection

add_filter(‘frm_pro_fields_in_dynamic_selection’, ‘hide_specific_field_dynamic_selection’, 10, 2); function hide_specific_field_dynamic_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

Remove all Likert fields from the form settings

add_filter( ‘frm_fields_in_settings’, ‘remove_likert_form_settings’, 10, 2); function remove_likert_form_settings( $fields, $args ) { if ( 13 != $args[‘form’]->id ) { return $fields; // Do not modify fields if this is not the form you want. } // Remove all Likert fields. foreach…Continue reading

Include fields by id

add_filter( ‘frm_quiz_score_field’, ‘include_fields_in_quiz_score’, 10, 2 ); function include_fields_in_quiz_score( $count_field, $args ) { $forms = array( 203, 210 ); // List the ids of the quiz forms whose scoring you want to determine with this snippet if ( ! in_array( $args[‘field’]->form_id,…Continue reading

Remove all Likert fields from the tags box

add_filter( ‘frm_fields_in_tags_box’, ‘remove_likert_tags_box’, 10, 2); function remove_likert_tags_box( $fields, $args ) { if ( 13 != $args[‘form_id’] ) { return $fields; // Do not modify fields if this is not the form you want. } // Remove all Likert fields. foreach…Continue reading

Change fields before they display in Table View popup

add_filter( ‘frm_views_fields_in_create_view_popup’, ‘change_fields_before_display_in_table_view_popup’ ); function change_fields_before_display_in_table_view_popup( $fields ) { // modify the $fields before they are added to the new table view pop up. return $fields; }Continue reading