Try this:
- Check the Allow field to be populated dynamically box (done).
- Enter a parameter name (in this example, I’ll call it
my_param
). -
Add code to
functions.php
:function populate_fields( $value, $field, $name ) { // Use the POSTed data if it's there return isset( $_POST[ $name ] ) ? $_POST[ $name ] : $value; } add_filter('gform_field_value_my_param', 'populate_fields', 10, 3);
Note that the filter is gform_field_value_{$parameter_name}
, not simply gform_field_value
.