GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Variables
search-field-select.php File Reference

Go to the source code of this file.

Variables

 $default_option = apply_filters('gravityview/extension/search/select_default', ( '' === $placeholder ? '—' : $placeholder ), 'select' )
 
if(empty( $search_field['choices'])) if(is_array( $search_field['value'])) $gf_field = GFAPI::get_field( $gravityview_view->getForm(), $search_field['key'] )
 
 $gravityview_view = GravityView_View::getInstance()
 
 $placeholder = \GV\Utils::get( $gf_field, 'placeholder', '' )
 
 $search_field = $gravityview_view->search_field
 
 $view_id = $gravityview_view->getViewId()
 
 if (! gv_empty($search_field[ 'label'], false, false))
 

Variable Documentation

◆ $default_option

$default_option = apply_filters('gravityview/extension/search/select_default', ( '' === $placeholder ? '—' : $placeholder ), 'select' )
Runs Filter:
gravityview/extension/search/select_default Define the text for the default option in a select (multi or single dropdown)
Since
1.16.4
Parameters
string$default_optionDefault: (—)
string$field_typeField type: "select" or "multiselect"

Definition at line 32 of file search-field-select.php.

◆ $gf_field

if (empty($search_field[ 'choices'])) if (is_array($search_field[ 'value'])) $gf_field = GFAPI::get_field( $gravityview_view->getForm(), $search_field['key'] )

Definition at line 23 of file search-field-select.php.

◆ $gravityview_view

$gravityview_view = GravityView_View::getInstance()

Definition at line 8 of file search-field-select.php.

◆ $placeholder

$placeholder = \GV\Utils::get( $gf_field, 'placeholder', '' )

Definition at line 24 of file search-field-select.php.

◆ $search_field

$search_field = $gravityview_view->search_field

Definition at line 10 of file search-field-select.php.

◆ $view_id

$view_id = $gravityview_view->getViewId()

Definition at line 9 of file search-field-select.php.

◆ if

if(! gv_empty( $search_field['label'], false, false))

Definition at line 36 of file search-field-select.php.