Here’s the select <select id="select_trip" class="form-control" dmx-bind:options="sc_trips.data.query" optiontext="trip_name" optionvalue="trip_id" name="select_trip"></select>
And a sample of the data returned from the sc_trips server connect…
{
“trip_id”: “51”,
“trip_name”: “Ashley’s Graduation Trip”,
“trip_subtitle”: “Czech Republic, Vienna, Budapest & London”,
“month_id”: “5”,
“trip_year”: “2010”,
“trip_status_id”: “3”,
“user_id”: “1”,
“create_date”: null,
“last_updated”: “2020-02-18 09:49:14”,
“default_page”: null,
“currency”: “EUR”
},
I think the easiest solution is to go into the dev console and execute dmx.app.data. This will allow you to decipher the correct path to the select element.
Sure. Here’s a link on how to use developer console in a browser:
Once that is open you go to the Console panel.
Type in:
dmx.app.data
and hit return twice.
You will get a listing of all your wappler components. Here’s an example from a page I happen to have open:
Your task is to find your select element by drilling down into the appropriate components.
Continuing my example, let’ say I needed the path to my inp_email input. I can drill down from content (a view) to register1 (a form) and then inp_email (the input)