I have create a hook in my database (City + State). I now want to display it in a text box on a Repeater. I am getting an error and it is probably syntax - I need another set of eyes, please.
Hook:
export function Directory_afterQuery(item, context) {
//City, St
item.citySt = item.city + ", " + item.St;
return item;
}
On Page Code:
$w.onReady( function () {
//Display City, St
$w(“#repeater1”).onItemReady( ($w, item, index) => {
$w(“#repeater1”).text35 = item.citySt; //This line shows error
} );
});