GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
field-checkbox-csv.php
Go to the documentation of this file.
1 <?php
2 /**
3  * The default field output template for CSVs.
4  *
5  * @global \GV\Template_Context $gravityview
6  * @since 2.0
7  */
8 
9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10  gravityview()->log->error( '{file} template loaded without context', array( 'file' => __FILE__ ) );
11  return;
12 }
13 
14 $field_id = $gravityview->field->ID;
15 $display_value = $gravityview->display_value;
16 $value = $gravityview->value;
17 $entry = $gravityview->entry->as_entry();
18 
19 /**
20  * @filter `gravityview/template/field/csv/glue` The value used to separate multiple values in the CSV export
21  * @since 2.4.2
22  *
23  * @param string The glue. Default: ";" (semicolon)
24  * @param \GV\Template_Context The context.
25  */
26 $glue = apply_filters( 'gravityview/template/field/csv/glue', ";", $gravityview );
27 
28 echo implode( $glue, array_filter( $value ) );
$display_value
if(! isset( $gravityview)||empty( $gravityview->template)) $field_id
The default field output template for CSVs.
gravityview()
The main GravityView wrapper function.