Wordpress : How to display data in elementor submission form

I made à shortcode to display my CPT titles "Formations" in select form (elementor widget) and it's working `function shortcode_test($tag){

global $post;
$args = array( 'post_type' => 'formations', 'numberposts' => -1 );

$myposts =  get_posts( $args );

$output = '<select name="lstdate" id="fleet" onchange="document.getElementById(\'fleet\').value=this.value;">';
foreach ( $myposts as $post ) : setup_postdata($post);

   $title = get_the_title();

$output .= ' <option value="'. $post->ID .'">'. $title .' </option>';


$output .= '</select>';

return $output; 

} add_shortcode('shorty', 'shortcode_test'); `

All Formations CPT titles

But when i check elementor submission, the field is empty (and he is also empty in the mail that i receive)

Empty submission

If someone could help me, it would be great.

Thank you !