Elementor custom taxonomy select

function elementor_custom_taxonomy_list( ) {
	$taxonomy_name = 'taxonomy_name';
	$elements = get_terms( $taxonomy_name, array('hide_empty' => false) );
	$cpt_cat_array = array();

	if ( !empty($elements) ) {
		foreach ( $elements as $element ) {
			$info = get_term($element, $taxonomy_name);
			$cpt_cat_array[ $info->term_id ] = $info->name;
		}
	}

	return $cpt_cat_array;
}

GravityForm autopopulate dropdown from post

<?php 
add_filter( 'gform_pre_render_1', 'autopopulate_class' );
add_filter( 'gform_pre_validation_1', 'autopopulate_class' );
add_filter( 'gform_pre_submission_filter_1', 'autopopulate_class' );
add_filter( 'gform_admin_pre_render_1', 'autopopulate_class' );
function autopopulate_class( $form ) {
 
    foreach ( $form['fields'] as &$field ) {
 
        if ( $field->type != 'select' || strpos( $field->cssClass, 'populate-events' ) === false ) {
            continue;
        }
 
        // you can add additional parameters here to alter the posts that are retrieved
        // more info: http://codex.wordpress.org/Template_Tags/get_posts
        $posts = get_posts( 'post_type=cpt_type&numberposts=-1&post_status=publish' );
 
        $choices = array();
 
        foreach ( $posts as $post ) {
            $choices[] = array( 'text' => $post->post_title, 'value' => $post->post_title );
        }
 
        // update 'Select a Post' to whatever you'd like the instructive option to be
        $field->placeholder = 'Select a class';
        $field->choices = $choices;
 
    }
 
    return $form;
}