DMXzone App Connect Support Product Page
Doesn't need answer
How do I dynamically populate a select menu?
Asked 02 Mar 2020 16:51:47
1
has this question
02 Mar 2020 16:51:47 Bruce Wilkie posted:
Hi thereHow do I dynamically populate a select menu?
I'd like one static <option> just labelled as "choose..." and then the rest of the options populated from a server action that I've created listing the options.
I can see there's an 'Options Properties' area in App connect when I select the select menu, but it doesn't seem to work when I try selecting data source, values and text in the 3 boxes from my Server Action.
Code that it's creating when I do this below:
<select name="product_c1" id="product_c1" dmx-bindptions="serverconnectListC1" optiontext="querySelectC1[0].product_cat_name" optionvalue="querySelectC1[0].product_cat_id">
<option>choose...</option>
</select>
I've tested the Server Action to make sure that works and it's showing the results just fine when I try the 'Open in browser' button to test it.
Would you be able to have a look and let me know how to do this so it works?
thanks in advance
Bruce
Replies
Replied 03 Mar 2020 11:19:31
03 Mar 2020 11:19:31 Bruce Wilkie replied:
No worries. Found it in this video www.youtube.com/watch?v=AMtrMxX2BCk
I was close, just not quite selecting the right thing for the Data Source.
cheers
Bruce
I was close, just not quite selecting the right thing for the Data Source.
cheers
Bruce