Hi all,
I am using multi state boxes to create interactive product selections. As I will be creating a large number of these boxes, I would like to know if there is a way to render these boxes programatically in the backend?
My site is www.gigabeat.sg/benefits
Thanks in advance for any suggestions.
hmm :( wix is lot more complex for achieving simple things, appsheet gives dynamix functionality in a jiff, upload excel and done, it's dynamic page. here OMG, create 100 things and still no functionality. No sorting or filters or search all are too much difficult in wix, I mean don't you guys know tables means filters are used,
Hi, check this out for using multistate boxes https://youtu.be/YRwdH21RFUY
Ok got it. Thanks for helping to confirm Quentin, appreciated.
Wix API does not support elment creation.
Elements are either visible or hide/collapse. You cannot add element. There is no way to add new element to wix nor it's possible to add state or slides via code. So the only way to achieve what you need is to use repeater and/or hide show elements based via code
Thanks for the response Quentin! What I'm trying to ask is if it's possible to define a multi state box as an object with standard states and elements, then render the content in the elements based on either a collection or some kind of hashmap where I store the actual content (e.g. text in a textbox) for each instance of a state box which is rendered.
Hope this makes sense, and thanks for the example.
What do you mean create in the backend? Multistate boxes are frontend element. If you mean: is it possible to have dynamic multistate boxes with a dynamic number of state, the short answer is no. But if you know coding, you can create a virtual dynamic multi-state box:
Create a multi state box with 2 state
Bind the first element to state number 1
When you change state, bind the new item to state number 2
When you change state, bind the new item to state number 1
When ...
Therefore you use 2 states but dynamically change their content and have as many states as necessary. This is also super fast because you create only 2 states:
Here an example with 500 items and 3 slides from a slideShow component https://www.test.enhancement.studio/dynamic-slider