Disable tooltip in the pie graph

add_filter(‘frm_google_chart’, ‘frm_pie_chart_tooltip’, 10, 2); function frm_pie_chart_tooltip($options, $atts){ if ( $atts[‘type’] == ‘pie’ ) { $options[‘tooltip’] = array(‘trigger’ => ‘none’); } return $options; }Continue reading

Display multi-select option values

add_filter( ‘frmpro_fields_replace_shortcodes’, ‘frm_display_option_values_with_pattern’, 10, 4 ); function frm_display_option_values_with_pattern( $replace_with, $tag, $atts, $field ) { if ( isset ( $atts[‘pattern’] ) ) { if( $replace_with ) { $pattern = $atts[‘pattern’]; if( is_array( $replace_with ) ){ foreach($replace_with as $key => $value) {…Continue reading

Access a row on a repeater

add_action( ‘frm_before_destroy_entry’, ‘my_custom_function’,9 ); function my_custom_function( $entry_id ) { $entry = FrmEntry::getOne( $entry_id, true ); if ( $entry->parent_item_id !== ‘0’ ) { // do something for repeating group entries from this form } }Continue reading

Add new tag

add_filter( ‘frm_mlcmp_tags’, ‘add_new_tag’ ); function add_new_tag( $tags, $data ) { if ( $data[‘subscriber_id’] === ‘123’ ) { $tags[] = array( ‘name’ => ‘New tag’, ‘status’ => ‘active’, ); } return $tags; }Continue reading

Change property

add_filter( ‘frm_field_value_object’, ‘change_field_name_property’, 10, 1 ); function change_field_name_property( $field ) { if ( $field->id === ‘123’ ) { $field->name = ‘new name’; } return $field; }Continue reading

Change property

add_filter( ‘frm_xml_response’, ‘change_response_message’ ); function change_response_message( $response ) { $form_id = ‘123’; if ( $response[‘id’] === $form_id ) { $response[‘message’] = ‘new message’; } return $response; }Continue reading

Flag the submission of a form as honeypot spam

add_filter( ‘frm_process_honeypot’, ‘my_custom_function’, 10, 2 ); function my_custom_function( $is_honeypot_spam, $atts ) { if ( $atts[‘form’]->id === ‘5’ ) { //change 5 to the ID of your form if ( $is_honeypot_spam ) { // handle honeypot spam. } } return $is_honeypot_spam;…Continue reading