Can I insert dynamic data into running text?

Say I have a database setup with dynamic data, for example field: Car manufacturer - Nissan, model: Altima

In a dynamic page, is it possible to insert these dynamic fields into text? For example, if I want the output:

“the Nissan Altima is a reasonably-priced family car”, do need to insert separate text blocks for “The”, “car_manufacturer”, “model” and “is a reasonably priced family car.”

Or, is there a way of inserting that data into running text, for example: The {car_manufacturer} {model} is a reasonably priced family car.

If it’s the first option, this would be an issue, because if the next item in the database is BMW and X5, that will throw the spacing completely off.

I hope this makes sense, and I am grateful for your feedback.

Hi Paul,

Where do you want to show the running text?

Inside repeater? Inside table? Alert text pin to screen or something else?

Hi, I basically want standardized text on the page itself, as paragraphs / headings etc, with an option to just drop in dynamic words…

For example: Get the latest prices on the {car_manufacturer} {model} sedan car.

I don’t know if that’s possible with the current implementation of Wix code and dynamic content?

Hi Paul,
Let create a quick demo for your case : )

Hi again,

Here a quick demo for your case. Enjoy🚗
https://howplayhk.wixsite.com/dropdowndemo

I think your question maybe about below.

The concept like below:

//...
export function dropdown1_change() {
    addDropdownBValue();
    $w("#text").text = "The " + $w("#manufacturerDropdown").value + " model sedan car.";
}

function addDropdownBValue() {
    let dropdown2option;
    $w("#manufacturerDropdown").onCustomValidation((value) => {
    switch (value) {
    case "Acura":
                dropdown2option = [{label: "Acura01", value: "Acura01"},
                                   {label: "Acura02", value: "Acura02"},
                                   {label: "Acura03", value: "Acura03"},];
    break;
    case "BMW":
                dropdown2option = [{label: "BMW01", value: "BMW01"},
                                   {label: "BMW02", value: "BMW02"},
                                   {label: "BMW03", value: "BMW03"},];
    break;
    case "Ferrari":
                dropdown2option = [{label: "Ferrari01", value: "Ferrari01"},
                                   {label: "Ferrari02", value: "Ferrari02"},
                                   {label: "Ferrari03", value: "Ferrari03"},];
    break;
    default:
    break;
    }
    $w("#modelDropdown").options = dropdown2option;
 });
}

export function dropdown2_change() {
    $w("#text").text = "The " + $w("#manufacturerDropdown").value + " " + $w("#modelDropdown").value +" sedan car.";
}

Have a good day :blush:
Heson