Hi @caroltsai,
Our SLS team suggested the following code snippet to be used as mu-plugin.
<?php
add_action( 'forminator_custom_form_submit_before_set_fields', 'wpmudev_extract_field_data', 10, 3 );
function wpmudev_extract_field_data( $entry, $module_id, $field_data_array ) {
$form_ids = array(141); // Please change the form ID.
if ( !in_array( $module_id, $form_ids ) ) {
return;
}
foreach ( $field_data_array as $key => $value ) {
// $value['name'] will give the field ID like text-1
// $value['value'] will give value of that field.
}
}
Please make sure to change the form ID and the field IDs you want to change the contents.
You can find more information below on how to use mu-plugins.
https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins
Kind regards,
Zafer