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
My problem is on the select’s option setup ( dmx-bind:disabled). What condition should I use in order to check if the selectedValue of my select is disabled if its value exists in the prod_vars data store…
I am in need of a similar solution. I have a select input which is populated from the data. Some of the items need to be disabled so they can’t be selected (the list is in section so I have some section headings). How can I dynamically add disabled to the option if the option text matches a criteria?
Here the option’s data (value:‘var_id’ & text:‘var_name’) come from a query srvc_getVar_OptionList.data.query and I check if the value ‘var_id’ of a datastore named prod_vars.data contains the query row’s value
(In my case the var_id it happens to have the same name in my query and in my datastore)