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!