Multi Reference on repeater click display related posts/article content

I would like blogRef Post titles to display on the related repeater content when clicked.


My current line of code does not work.
When the repeater item is clicked the “Featured In” blog Text turns into _id’s and not the title itself.

Query #1: When the repeater item is clicked how do I transfer related “Posts” Titles to the correlated item which is referenced in the dataset.

export function box34_click(event) {
$w("#repeater5").onItemReady( ( $item, itemData, index) => {
if (event.context.itemId === itemData._id) { 

$item("#taptitle").text = $item("#seltitle").text;
$item("#taptitle2").text = $item("#seltitle").text;
$item("#tapcategory2").text = $item("#selcategory").text;

if (!itemData.blogRef1){
$item('#featuredin1').collapse();
} else {
$item("#ArticleTitle1").text = itemData.blogRef1;
$item('#featuredin1').expand();
}
if (!itemData.blogRef2){
$item('#featuredin2').collapse();
} else {
$item("#ArticleTitle2").text = itemData.blogRef2;
$item('#featuredin2').expand();
}
if (!itemData.blogRef3){
$item('#featuredin3').collapse();
} else {
$item("#ArticleTitle3").text = itemData.blogRef3;
$item('#featuredin3').expand();
}

I’ve been at this for a while and some assistance would be awesome!

$w ( “#repeater5” ). onItemReady ( async ( $item , itemData , index ) => {
if ( event . context . itemId === itemData . _id ) {
var blogs = [];

let blogTempF ;
var primary ;
let a = getBlogs ( itemData . _id ). then ( async ( res ) => {
primary = res ;
$item ( “#repeater7” ). data = primary . blogRefs ;
$item ( “#repeater7” ). forEachItem (( $item2 , itemData2 , index2 ) => {
$item2 ( “#text202” ). text = itemData2 . title ;
$item2 ( “#imageX1” ). src = itemData2 . coverImage ;
$item2 ( “#imageX1” ). link = itemData2 . postPageUrl ;
//please, read this: postPageUrl string Relative URL of the post page on your published site. Also, have to adjust the box’s design
})
})