GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
deprecated/fields/list.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Display the list field type
4  *
5  * @todo Confirm it works with http://gravitywiz.com/use-list-field-choices-gravity-forms/
6  * @package GravityView
7  * @subpackage GravityView/templates/fields
8  * @global GF_Field_List $field
9  * @global string $field_id ID of the field
10  * @global string $value Gravity Forms serializes the list field values
11  * @global string $display_value Field output HTML. For list fields with columns, it's a table. Otherwise, an unordered list
12  */
13 
15 
16 extract( $gravityview_view->getCurrentField() );
17 
19 
20 if( $field->enableColumns && false !== $column_id ) {
21 
22  /**
23  * @filter `gravityview/fields/list/column-format` Format of single list column output of a List field with Multiple Columns enabled
24  * @since 1.14
25  * @param string $format `html` (for <ul> list), `text` (for CSV output)
26  */
27  $format = apply_filters( 'gravityview/fields/list/column-format', 'html' );
28 
30 
31 } else {
32  echo $display_value;
33 }
static getInstance( $passed_post=NULL)
if(gv_empty( $field['value'], false, false)) $format
$display_value
gravityview_get_input_id_from_id( $field_id='')
Very commonly needed: get the # of the input based on a full field ID.
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
Definition: time.php:22
static column_value(GF_Field_List $field, $field_value, $column_id=0, $format='html')
Get the value of a Multiple Column List field for a specific column.