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

Go to the source code of this file.

Variables

 $default_option = apply_filters('gravityview/extension/search/select_default', ( '' === $placeholder ? '—' : $placeholder ), 'multiselect' )
 
if(empty( $search_field['choices'])) $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()
 
 endforeach
 
 if (! gv_empty($search_field[ 'label'], false, false))
 

Variable Documentation

◆ $default_option

$default_option = apply_filters('gravityview/extension/search/select_default', ( '' === $placeholder ? '—' : $placeholder ), 'multiselect' )
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 27 of file search-field-multiselect.php.

◆ $gf_field

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

Definition at line 18 of file search-field-multiselect.php.

◆ $gravityview_view

$gravityview_view = GravityView_View::getInstance()

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

◆ $placeholder

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

◆ $search_field

$search_field = $gravityview_view->search_field

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

◆ $view_id

$view_id = $gravityview_view->getViewId()

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

◆ endforeach

endforeach

◆ if

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

Definition at line 31 of file search-field-multiselect.php.