Hi @mikesuccess,
Trust you are doing good, and thank you for reaching out to us.
Please try the following workaround.
<?php
add_action( 'plugins_loaded', 'wpmudev_forminator_add_entry_id_to_response', 100 );
function wpmudev_forminator_add_entry_id_to_response() {
if ( class_exists( 'Forminator' ) ) {
class WPMUDEV_Forminator_Add_Entry_ID_To_Response{
private $form_id = 2910;//enter form_id here
private $entry_id;
public function __construct(){
add_action( 'forminator_custom_form_submit_before_set_fields', array( $this, 'retrive_entry_id' ), 10, 2 );
add_filter( 'forminator_replace_form_data', array( $this, 'add_entry_id_to_response' ), 10, 3 );
}
public function retrive_entry_id( $entry, $form_id ){
if( $this->form_id == $form_id ){
$this->entry_id = $entry->entry_id;
}
}
public function add_entry_id_to_response( $content, $data, $original_content ){
if ( strpos( $content, '{submission_id}' ) !== false ) {
$content = str_replace( '{submission_id}', $this->entry_id, $content );
}
return $content;
}
}
$run = new WPMUDEV_Forminator_Add_Entry_ID_To_Response;
}
}
Please change the form ID in the above code from 2910 to your form ID. You may please add the code using a mu-plugin. Please find more details here: https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins
Kind Regards,
Nebu John