# Long Form guidelines

**URL:** <https://community.glideapps.com/t/long-form-guidelines/31216>\
**Category:** Ask for Help\
**Created:** [September 1, 2021, 6:13am UTC](https://community.glideapps.com/t/long-form-guidelines/31216 "2021-09-01T06:13:13Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 2, 2021, 1:42am UTC](https://community.glideapps.com/t/long-form-guidelines/31216/14 "2021-09-02T01:42:15Z")

</div>

> [@Darren\_Murphy](#):
>
> hehe, it occurred to me at the time that you would bump into this problem, but I didn’t want to overcomplicate things for you so figured I would wait till you come back and ask about it. Yes, an if-then-else column can help with this. Let’s say you have 5 “sections” in your form, then the logic would be:
> 
> - If val \< 0 then 0
> - If val \> 4 then 4
> - Else val

hmm, just realised that this only solves half of the problem. In fact, it’s a bad solution, so don’t do that 😉  
Better to prevent it going out of range in the first place by adding conditionals in the button bar actions. So you’d need to make each of them custom actions and put the logic in there.

On the left (decrement) side for example, maybe something like:

- If val \> 0 then increment by -1
- Else Open Link “#”

(The “None” action isn’t available inside custom actions, so the “Open Link #” is a trick you can use to simulate one.)

---

_[View the full topic](https://community.glideapps.com/t/long-form-guidelines/31216)._
