Allow submissions from allowlist of referrer URLs

add_filter(‘frm_validate_entry’, ‘allowlist_referrer_url’ ,10, 2); function allowlist_referrer_url( $errors, $values ) { $target_form_id = 215; // Change 215 to the ID of your form. if ( $target_form_id !== (int) $values[‘form_id’] ) { return $errors; } $referer = FrmAppHelper::get_server_value( ‘HTTP_REFERER’ ); $referer_allowlist =…Continue reading

Disable rich text email for specific action

add_filter( ‘frm_rich_text_emails’, ‘disable_rich_text_email_for_specific_action’, 10, 2 ); function disable_rich_text_email_for_specific_action( $rich_text_emails, $args ) { $target_action_id = 2381; //Replace 2381 with your email action ID if ( $target_action_id === $args[‘form_action’]->ID ) { $rich_text_emails = false; } return $rich_text_emails; }Continue reading

Disable rich text email for specific form

add_filter( ‘frm_rich_text_emails’, ‘disable_rich_text_email_for_specific_form’, 10, 2); function disable_rich_text_email_for_specific_form( $rich_text_emails, $args ) { $target_form_id = 338; //Replace 338 with your form ID if ( $target_form_id === (int) $args[‘form’]->id ) { $rich_text_emails = false; } return $rich_text_emails; }Continue reading

Change Outcome Quiz image border radius for one form

add_filter(‘frm_quiz_outcome_image_border_radius’, ‘change_quiz_outcome_image_border_radius_form’, 10, 2); function change_quiz_outcome_image_border_radius_form( $border_radius, $args ) { $target_form_id = 267; //Change 267 to the ID of your form if ( $target_form_id === $args[‘form_id’] ) { $border_radius = ‘100px’; //change 100px } return $border_radius; }Continue reading

Change Outcome Quiz image border radius for a field

add_filter(‘frm_quiz_outcome_image_border_radius’, ‘change_quiz_outcome_image_border_radius_field’, 10, 2); function change_quiz_outcome_image_border_radius_field( $border_radius, $args ) { $target_outcome_id = 1168; //Change 1168 to the ID of your Outcome Quiz field if ( $target_outcome_id === $args[‘outcome’]->ID ) { $border_radius = ‘100px’; //change 100px } return $border_radius; }Continue reading

Change CSV log filename

add_filter(‘frm_logs_csv_filename’, ‘change_logs_csv_filename’, 10, 2); function change_logs_csv_filename($filename){ $filename = date(“ymdHis”,time()) . ‘_formidable_logs.csv’;//Change the filename here return $filename; }Continue reading