# Conditional Buttons

**URL:** <https://forum.bubble.io/t/conditional-buttons/324213>\
**Category:** Responsiveness\
**Created:** [May 28, 2024, 2:44am UTC](https://forum.bubble.io/t/conditional-buttons/324213 "2024-05-28T02:44:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![flusk](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/flusk/32/216042_2.png) [@flusk](https://forum.bubble.io/u/flusk)\
**Post date:** [May 28, 2024, 3:14am UTC](https://forum.bubble.io/t/conditional-buttons/324213/2 "2024-05-28T03:14:52Z")

</div>

Hey @caseyomar99 👋

You will only have one page for displaying a question and its options. In this page, you will keep the current question number in a custom state. Then, the next button will just select the next question on and on.

See the demo below:  
 ![brave_AVkvKqby8G](https://us1.discourse-cdn.com/bubble/original/3X/2/8/28fbead073ab39f189671b0447d2ba9fc3583186.gif)

There is only 1 custom state to keep track of the current question in the page:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/c/dcd7367441625285f8844426db0fe45d18da023a.png)

And the displays are just getting this question from the DB and displaying their options and text:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/6/86cb40d045a564ad4a0bd9d1170e76149b1829d5.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/2/f27b2bf9fe05a4759f29dd7a36670496f7a0c442.png)

And finally, all the buttons do is to increase/decrease this number in the custom state:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/c/acf0fd930b07103eacbd2a688beeb9de230859e0.png)

This should give you some starting point.

If you want to check the editor, here it is: [Bubble Demos by Flusk | Bubble Editor](https://bubble.io/page?type=page&name=question_display&id=bubble-demos-by-flusk&tab=tabs-2)

> ![bdk_512x512](https://api.flusk.eu/api:-2sATD7a/forum-logo?user=huseyin) @Huseyin from Flusk | [Discover the #1 Security and Monitoring Tool for Bubble](https://www.flusk.eu/?source=forum_flusk_signature)

---

_[View the full topic](https://forum.bubble.io/t/conditional-buttons/324213)._
