Created
February 3, 2017 18:14
-
-
Save leepettijohn/b12dbecabe418dea18ac736ba7a337fb to your computer and use it in GitHub Desktop.
Gravity Forms - Get comma separated list of checkbox selections
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* link - http://wordpress.stackexchange.com/questions/210060/get-selected-values-from-checkboxes-and-radio-buttons-via-gravity-forms-gform-af*/ | |
$field_id = 4; | |
$field = GFFormsModel::get_field( $form, $field_id ); | |
$field_selections = is_object( $field ) ? $field->get_value_export( $entry ) : ''; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment