Insert into your theme or child theme functions file:


/* ------------------------- GRAVITY FORMS ROLES --- */
$role = get_role('editor');
$role->add_cap('gform_full_access');

add_action('admin_menu', function () {
$user = new WP_User(get_current_user_id());
  if (!empty($user->roles) && is_array($user->roles) && in_array("editor", $user->roles)) {
    remove_submenu_page( 'gf_edit_forms', 'gf_edit_forms' );
    remove_submenu_page( 'gf_edit_forms', 'gf_new_form' );
    remove_submenu_page( 'gf_edit_forms', 'gf_settings' );
    remove_submenu_page( 'gf_edit_forms', 'gf_help' );
    remove_submenu_page( 'gf_edit_forms', 'gf_system_status' );
  }
},9999);