Hey guys,
I would like some help in the following:
I have an order form and each product (line) have an optional variation-value list:
for example color(white/black), size(small/large) etc.
So, in a modal I define them and save them in a data store in order to be available when the form is submitted.
The variations and their values are 2 select come form a server connect
The problem is that the user cannot select more than 1 time each variation and I cannot find the right condition for disabling the options. The conditions I have tried give either all options are enabled or all disabled
Everything else works fine…
The problem is in the option’s repeat dmx-bind:disabled definition.
<select id="selectVars" class="form-select fw-bold" required="" dmx-bind:value="prod_vars.data[variationIndex.value.toNumber()-1].var_id"> <option value="" dmx-repeat:repeatvars="srvc_getVar_OptionList.data.query" dmx-bind:value="var_id" dmx-text="var_Name" dmx-bind:disabled="prod_vars.data.where(`var_id`, var_id, 'inArray')">option</option> </select>
Wappler 5.5.1 , php ,mysql
Please if anybody can point me the right way it will be much appreciated.
Thank in advance
Tasos