Question:
I am using the following piece of code to include textdata from 2 database fields in a text field. This which works perfectly if the “itinerary” field would be a text field. In this case, it’s a reference field so I think I need to adjust the code. Does anybody have any idea on how to achieve this? Thanks!!
$w.onReady( () => {
$w("#dynamicDataset").onReady( () => {
let itinerary= $w("#dynamicDataset").getCurrentItem().itinerary;//text is the field you want to get its text
let title= $w("#dynamicDataset").getCurrentItem().title;
$w("#text19").text = itinerary + " / " + title ;
} );
} );
Product:
Editor X