Prevent conditions in editor

Hi,

I’m curious to know if there is a way to prevent conditions from affecting the editor.

I ask because I’m working with a component which I’m conditionally showing based on some user meta. The moment I add the condition, the element I’m editing ‘disappears’ (since condition is not applicable to admin). Of course I can edit it and see it in the element list but I can’t visually see it. The workaround is to add a condition that reveals it to the user with the role ‘administrator’. However, this is not ideal as I would need to do this with every element that I’m conditionally showing.

Is there a way to exclude conditions from being applied in the editor?

Thanks!

Hey @kgpthemex,

Thanks for posting.

Yes, you can ignore the conditions while you are in the builder. It is in the Preview options as shown below.

Hope this helps.

1 Like

Ah! that’s what that’s for lol.

Thanks @ruenel! learning everyday!

1 Like

You are most welcome, @kgpthemex.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.