# Incrementation of value

**URL:** <https://community.glideapps.com/t/incrementation-of-value/46368>\
**Category:** Ask for Help\
**Created:** [August 10, 2022, 8:52am UTC](https://community.glideapps.com/t/incrementation-of-value/46368 "2022-08-10T08:52:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liam\_Giabiconi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/liam_giabiconi/32/45976_2.png) [@Liam\_Giabiconi](https://community.glideapps.com/u/Liam_Giabiconi)\
**Post date:** [August 10, 2022, 8:52am UTC](https://community.glideapps.com/t/incrementation-of-value/46368/1 "2022-08-10T08:52:01Z")

</div>

Hello,

I have a problem, so if somebody has the solution it will be nice. I have a state variable which help me to know at what step of the onboarding is the user. This state variable will be incremented by a simple button each time the user complete a step. The problem is that when I put the button it appears, but when I change its function to increment number it disappears.

---

<div class="post-metadata">

**Author:** ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)\
**Post date:** [August 10, 2022, 11:11am UTC](https://community.glideapps.com/t/incrementation-of-value/46368/2 "2022-08-10T11:11:00Z")

</div>

Hello Liam,

Ideas to troubleshoot:

- Your button is on a details screen sourced to a table. Make sure the first row of this table has data.
- It is possible that the first row has data but that the builder/display considers that row empty. You would see this in the “Layout” area, left hand side, lower left pane, “Data tab”. If it says “The table has no rows”, then this might be your issue. I believe this can happen for instance if you have a lookup column that returns something empty.
- Is your button deleting the only/first row in your table. That might explain why the button disappears.
- Are there any visibility conditions on your button that would happen to interfere with the custom action of your button? For example, the custom action of your button would set a value that would be used in the visibility conditions thus making your button disappear.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 11, 2022, 12:19am UTC](https://community.glideapps.com/t/incrementation-of-value/46368/3 "2022-08-11T00:19:38Z")

</div>

If Nathanael’s troubleshooting methods don’t work for you, please send over some screenshots or a Loom video so we can help you debug it.
