# Multi-state box in Editor X

**URL:** <https://forum.wixstudio.com/t/multi-state-box-in-editor-x/47478>\
**Category:** Ask the community\
**Created:** [September 3, 2020, 4:11pm UTC](https://forum.wixstudio.com/t/multi-state-box-in-editor-x/47478 "2020-09-03T16:11:27Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![amiranazaladze](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/amiranazaladze/32/18850_2.png) [@amiranazaladze](https://forum.wixstudio.com/u/amiranazaladze)\
**Post date:** [September 3, 2020, 4:11pm UTC](https://forum.wixstudio.com/t/multi-state-box-in-editor-x/47478/1 "2020-09-03T16:11:27Z")

</div>

Dear friends, I have a quesiton about Velo and Editor X.

I am using Muli-State boxes well in Wix editor and switching them with this code

export function button2\_click(event) {  
$w(“#multistatebox”).changeState(“box1”);  
}  
export function button2\_click(event) {  
$w(“#multistatebox”).changeState(“box2”);  
}

to switch boxes with button, it is great solution for speed up the website and avoid page switching. But “.changeState” is not working in Editor X. there is an arror.

I can not find such option in Editor X. .

Can you advise what can be the solution to reach the same result as with multi-state box with buttons, but in editor X?

Sincerely

#multistatebox #on\_click #changeState

---

<div class="post-metadata">

**Author:** ![sebi-vidret](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sebi-vidret/32/740_2.png) [@sebi-vidret](https://forum.wixstudio.com/u/sebi-vidret)\
**Post date:** [September 6, 2020, 7:28am UTC](https://forum.wixstudio.com/t/multi-state-box-in-editor-x/47478/2 "2020-09-06T07:28:01Z")

</div>

Hi,

Currently, we do not have have the component for Multi-state boxes in Editor X. We are working on implementing it to the platform.

You can create a show/hide logic with different boxes on your site.

---

<div class="post-metadata">

**Author:** ![amiranazaladze](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/amiranazaladze/32/18850_2.png) [@amiranazaladze](https://forum.wixstudio.com/u/amiranazaladze)\
**Post date:** [September 8, 2020, 9:09am UTC](https://forum.wixstudio.com/t/multi-state-box-in-editor-x/47478/3 "2020-09-08T09:09:55Z")

</div>

Hi Sebi,

Thank you for your support. I will try

---

<div class="post-metadata">

**Author:** ![galaxyw99](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/galaxyw99/32/23817_2.png) [@galaxyw99](https://forum.wixstudio.com/u/galaxyw99)\
**Post date:** [October 31, 2020, 9:11am UTC](https://forum.wixstudio.com/t/multi-state-box-in-editor-x/47478/4 "2020-10-31T09:11:14Z")

</div>

This is a very important component it should be a main component, i want to move to editor x but without that multi state box i couldn’t continue. Please speed up the process to release it in the next update as soon as possible.

Thanks for the great job and i am pretty sure that editor x will be a revelation in web development.

---

<div class="post-metadata">

**Author:** ![miguelhongo90](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/miguelhongo90/32/20930_2.png) [@miguelhongo90](https://forum.wixstudio.com/u/miguelhongo90)\
**Post date:** [October 31, 2020, 10:46am UTC](https://forum.wixstudio.com/t/multi-state-box-in-editor-x/47478/5 "2020-10-31T10:46:18Z")

</div>

Hi @sebi-vidret ,

Any updates?

thank you

---

<div class="post-metadata">

**Author:** ![Breakscape](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/breakscape/32/81336_2.png) [@Breakscape](https://forum.wixstudio.com/u/Breakscape)\
**Post date:** [November 13, 2020, 2:53pm UTC](https://forum.wixstudio.com/t/multi-state-box-in-editor-x/47478/6 "2020-11-13T14:53:37Z")

</div>

Bumping this up as it’s still a hugely important feature that we’re missing at the moment.

The addition of this element would drastically improve the possibilities that Editor X can provide.

Hopefully we can see this soon!

---

<div class="post-metadata">

**Author:** ![royarwas](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/royarwas/32/25444_2.png) [@royarwas](https://forum.wixstudio.com/u/royarwas)\
**Post date:** [December 12, 2020, 1:40am UTC](https://forum.wixstudio.com/t/multi-state-box-in-editor-x/47478/7 "2020-12-12T01:40:44Z")

</div>

When is this happening? Anyone?

---

<div class="post-metadata">

**Author:** ![ben63334](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/ben63334/32/8021_2.png) [@ben63334](https://forum.wixstudio.com/u/ben63334)\
**Post date:** [January 28, 2021, 4:09pm UTC](https://forum.wixstudio.com/t/multi-state-box-in-editor-x/47478/8 "2021-01-28T16:09:35Z")

</div>

Hi Guys, any update on this yet? it is still Beta so I can understand its still in development. I do need this function. My development has come to a holt as I cannot design what I wanted.

The Task:  
I intended to add to my responsive drop down menu a multi box with repeaters on each state. In my dropdown menu I have more buttons (sub menu) which on hover will change the state of my multi box. The repeater will show an image and the image will change when the user hovers over differnt buttons.

I have managed to get around the lightbox issues and imitated my header menu in the lightbox. On hover it simply opens a lightbox with another header menu in the lightbox. [https://bhm661.editorx.io/bytec-new](https://bhm661.editorx.io/bytec-new)  
All thats missing is the multibox and images. (plus there is a bug here too, whats in editor and what live is not correct and changes despite having fixed paramiters. I have put a 1px margin Top & bottom to show a shadow, this 1xp+1xp has resulted in an extra 2px where there should not be, I have a fix but will leave it so you can see. the fix is on solutions)

Question: Is show/hide more effective than if we had a multibox, given that it was provided. Focus is Page speed - reaction time. Which will preform better ? as if the multi box , when ready, acutally imposes more loadtime than to have that function as code I may want to build it in code anyway as I dont want any additonal requests.

Also I have an idea too: Can you use pro galleries for my Task? As the repeater is image related I’m just thinking maybe use that and call a slide as if its a state. But can you even call a slide within a gallary? Change slide in relation to hover button.

---

<div class="post-metadata">

**Author:** ![guyd](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/guyd/32/3202_2.png) [@guyd](https://forum.wixstudio.com/u/guyd)\
**Post date:** [February 1, 2021, 8:29am UTC](https://forum.wixstudio.com/t/multi-state-box-in-editor-x/47478/9 "2021-02-01T08:29:04Z")

</div>

Hey Ben,  
Awesome work on that mega menu, it seems to work pretty good with the solutions you found!

Regarding performance, there’s not much of a difference, BUT there might be a slight advantage for the hide/show, as it affects the CSS visibility of the element, while the state box changes render or remove states from the DOM (HTML tree) which is a bit more ‘expensive’.

I think there are many ways to implement this behaviour, but the solution you chose using show/hide seems to be pretty optimal.

Regarding the extra margins that appear in the published site vs. editor, I could not locate the area you referred to so I cannot investigate further, try to provide some screenshots maybe.

Cheers!

---

<div class="post-metadata">

**Author:** ![Rob](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/rob/32/84134_2.png) [@Rob](https://forum.wixstudio.com/u/Rob)\
**Post date:** [September 23, 2022, 1:04pm UTC](https://forum.wixstudio.com/t/multi-state-box-in-editor-x/47478/10 "2022-09-23T13:04:18Z")

</div>

Closing this thread as all the previous posts are pretty old and this issue has long resolved. If you are experiencing any issues with changing states, please reach out in a new post, check t [he Velo forum](https://www.wix.com/velo/forum) if there are known issues or r [each out to customer care and specify Velo as the topic](https://support.wix.com/en/article/contacting-wix-customer-care-for-support) .

Thank you.
