Home / Documentation / Search Field for Gravity Forms / Customize “No results” text

Customize “No results” text

With version 0.7, it is now possible to customize the “No results” text for the Search Field for Gravity Forms using the filter “gravityforms_search_no_results”. Example:

 add_filter( 'gravityforms_search_no_results', 'gravityforms_search_no_results', 10, 3 );
 function gravityforms_search_no_results( $text, $form_id, $field_id ) {
     $text = 'Your custom text or HTML here';
     return $text;
 }