Skip to content

Commit 38157c5

Browse files
authored
gppa-populate-from-multiple-forms.php: Updated the snippet to set the value property too.
1 parent 2ae6f9b commit 38157c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gp-populate-anything/gppa-populate-from-multiple-forms.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
$last_name = $entry['3.6'];
2525
break;
2626
}
27-
$choice['text'] = sprintf( '%s %s', $first_name, $last_name );
27+
$choice['text'] = sprintf( '%s %s', $first_name, $last_name );
28+
$choice['value'] = sprintf( '%s %s', $first_name, $last_name );
2829
}
2930

3031
return $choices;

0 commit comments

Comments
 (0)