# Conditional display not working once published

**URL:** <https://community.weweb.io/t/conditional-display-not-working-once-published/2656>\
**Category:** Ask us anything\
**Created:** [May 10, 2023, 11:59am UTC](https://community.weweb.io/t/conditional-display-not-working-once-published/2656 "2023-05-10T11:59:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jivdbroe](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jivdbroe](https://community.weweb.io/u/jivdbroe)\
**Post date:** [May 10, 2023, 11:59am UTC](https://community.weweb.io/t/conditional-display-not-working-once-published/2656/1 "2023-05-10T11:59:19Z")

</div>

Hi everyone,

I created a multi-step form using a variable, each step increases the variable and I display the question based on that variable. Not sure if this is a best or even a good practice, but in weweb it works :

![ezgif.com-video-to-gif](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/adfc68b2c4fa7a741eb2a4785f6e5f49911965c7.gif)

However once published, it does not work and I have no idea why 😢

> **[Vide | Commencer à partir de zéro](https://app.jerenovemamaison.be/step_1/)**

Thanking you in advance for any help 🙏

J

---

<div class="post-metadata">

**Author:** ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)\
**Post date:** [May 11, 2023, 8:16am UTC](https://community.weweb.io/t/conditional-display-not-working-once-published/2656/2 "2023-05-11T08:16:39Z")

</div>

Are you doing an initial API call? I see one which fails during the first pageview.

---

<div class="post-metadata">

**Author:** ![jivdbroe](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jivdbroe](https://community.weweb.io/u/jivdbroe)\
**Post date:** [May 11, 2023, 9:12am UTC](https://community.weweb.io/t/conditional-display-not-working-once-published/2656/3 "2023-05-11T09:12:59Z")

</div>

First of all thanks for trying to help me out, I appreciate it very much.

So Yes, I think there is one for a select dropdown to a Xano database for a list of possibilities.

But it shouldn’t impact the first button which only changes a variable no ?

I tried some things out and found out the on click workflow does not appear to be working because the button doesn’t change the variable.

But I’m very new to weweb so I’m not sure about the why…

---

<div class="post-metadata">

**Author:** ![jivdbroe](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jivdbroe](https://community.weweb.io/u/jivdbroe)\
**Post date:** [May 11, 2023, 9:47am UTC](https://community.weweb.io/t/conditional-display-not-working-once-published/2656/4 "2023-05-11T09:47:38Z")

</div>

Made it work, I don’t really know how, but now it works 🙂 Thanks a lot for taking the time @Quentin
