Conditional display based on screen size?

I need to conditionally display a section when screen width < 700 px. How do I specify screen size in a weweb formula?

1 Like

To my knowledge this is not fronted in the no code interface. You’ll have to use a Javascript formula. See Window: innerWidth property.

You might want to go with something like the following, if window.innerWidth is not available:

return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;