Hi @wpmudevsupport16 ,
it’s a really simple use case. For example, I try to update the entry of another form inside ‘forminator_custom_form_submit_before_set_fields’ hook. If the field names I want to update (e.g. text-3) are the same I can just use $field_data_array directly to update the entry of another form successfully.
add_action('forminator_custom_form_submit_before_set_fields', function($entry, $form_id, $field_data_array) {
Forminator_API::update_form_entry( FORM_ID, ENTRY_ID, $field_data_array );
}
But it doesn’t work with select fields. It also doesn’t work when I create $entry_meta as in docs https://premium.wpmudev.org/docs/api-plugin-development/forminator-api-docs/. I try to extract values from both $entry and $field_data_array but if I remember correctly they are in the same format. Anyway, neither one is working.
I couldn’t update the value of a select field in any way. Although, I am able to update the values of other fields.
Tomas
-
This reply was modified 3 years, 9 months ago by matlino.