Hi there, I am trying to get the text and value of a dropdownlist in the gform_pre_submission_filter
if i do var_dump none of the items are shown as selected.
//field_id=2;
//$field = GFFormsModel::get_field( $form, $field_id );
//$choices = $field->choices;
//var_dump($choices);
How do i get the text and value that the user has selected?
My end result is to combine several fields together (first name field, lastname field and a select field) and store it in its own field. which is then picked up by dynamics crm plugin to upload to crm.
Hi Chris, thanks for the help,
in the example you show $choice_text = $field->get_value_export( $entry, $field_id, true );
Where to I get the $entry from as this is done in pre_submission and from what i have read it, presubmission doesnt have the $entry only $form