@adcatch02 yes. you have to declare a variable before you use it.
@jonatandor35 but sorry where do i declare this, i have tried several options?
@jonatandor35 $w.onReady(() => {
$w(“#dynamicDataset”).onReady(() => {
const firstName =
$w(“#dynamicDataset”).getCurrentItem().firstName;// your field key
$w(‘#text109’).text = ${firstName}, Welcome to **this** page **for** ${lastName};
$w.onReady(() => {
$w("#dynamicDataset").onReady(() => {
const item = $w("#dynamicDataset").getCurrentItem();
const firstName = item.firstName;
const lastName = item.lastName;
$w('#text109').text = `${firstName}, Welcome to this page for ${lastName}`;
})
})
@jonatandor35 thanks so much