Add data from a repeat into an array

Try this page

So what should happen on this page exactly? How to test it?

Well if you click the Derma you will see that a
get_all_filters_that_exist_with_main_filter.php?filter_clicked=12
is loaded.
This returns the ‘result’ variable that we created.
The values of this array tell which checkboxes should not be disabled.
At the left of each filter (white, red etc) there is a number. This is the value that should match to the array in order to not be diabled.

Thanks!

So where are these checkboxes? Where to look at on your page?

Click the Color, Size,Type tabs and the will appear

Probably some value is wrong in your expression. Please double check the properteis/bindings names used.

dmx-bind:disabled="arrRel.items.hasItems() ? !arrRel.items.contains(fts_filter_prop_fgn) : false"

Your page is a bit complicated and uses quite a lot of repeats etc so it’s hard to navigate fast through your code…
Better test this on really simple page with just the checkboxes, array and the server connect on it.

Cool Teodor. I will check it out. Thank you for your time. If not working I will replicate it in a simplier example so its easier for you to help even more than you already did!

May the God of Mythos, Alpha, Fix be with you!

1 Like

@Teodor it is almost working. It disables the right values I only need to refine the flow which selects the main value to filter the rest of the checkboxes. Thank you very much!!!

1 Like

Is it still a best approach of adding items from Database query output to an array?