which seems to work
$formsList = Versioned::get_by_stage('QuestionnairePage', Versioned::LIVE)->map('ID', 'MenuTitle')->toArray();
@kinglozzer - just seen your code snippet above. i had wobbled off to the docs based on your comments on "versioned" and come up with:
not just something like QuestionnairePage::get()->where(published: true)
yep me too, im not sure i got it till i read your comment : )
but because it is fetching all, not just published, it then can't find the page for users on the site.
so that code fetches a list, which is used in the cms