Use table to display the Likert field value
add_filter(‘frm_likert_html’, ‘display_likert_html’, 10, 2); function display_likert_html( $html ) { return ‘ %1$s: %2$s ‘; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter(‘frm_likert_html’, ‘display_likert_html’, 10, 2); function display_likert_html( $html ) { return ‘ %1$s: %2$s ‘; }Continue reading
add_filter(‘frm_after_duplicate_field’, ‘frm_save_id_duplicate_field’, 10, 2); function frm_save_id_duplicate_field( $args ) { $new_field_options = $args[‘values’][‘field_options’]; $new_field_options[‘copied_from’] = $copy_field->id; FrmField::update( $field_id, array( ‘field_options’ => $new_field_options ) ); }Continue reading
add_filter(‘frm_choice_field_option_label’, ‘frm_wrap_choice_option_label’, 10, 2); function frm_wrap_choice_option_label( $label, $args ) { return ‘<div class=”your-custom-class”>’ . $label . ‘</div>’; }Continue reading
add_filter( ‘frm_images_dropdown_args’, ‘add_custom_args_image_dropdown’, 10, 2); function add_custom_args_image_dropdown( $new_args, $args ) { $new_args[‘your_custom_args’] = ‘Your custom args’; return $new_args; }Continue reading
add_action( ‘frm_after_create_entry’, ‘frm_add_entry_id’, 42, 2 ); function frm_add_entry_id( $entry_id, $form_id ) { if ( $form_id == 221 ) { //change 221 to the ID of your form $entry = FrmEntry::getOne( $entry_id ); $key = $entry->item_key; FrmEntryMeta::add_entry_meta( $entry_id, 1819, “”, $key);//change…Continue reading
add_filter( ‘frm_images_dropdown_input_attrs’, ‘add_html_attrs_radio_image_dropdown’, 10, 2); function add_html_attrs_radio_image_dropdown( $input_attrs, $args ) { $input_attrs .= ‘ data-custom-value=”Custom value”‘; return $input_attrs; }Continue reading
add_filter( ‘frm_images_dropdown_option_image’, ‘use_url_image_dropdown’, 10, 2); function use_url_image_dropdown( $image, $args ) { if ( ! empty( $args[‘image_url’] ) ) { return ‘<img src=”‘ . esc_url( $args[‘image_url’] ) . ‘” />’; } return $image; }Continue reading
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
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_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