# How to Have Scroll Bar for Buttons?

**URL:** <https://forum.sambapos.com/t/how-to-have-scroll-bar-for-buttons/1604>\
**Category:** V4 Question\
**Created:** [June 21, 2014, 8:00am UTC](https://forum.sambapos.com/t/how-to-have-scroll-bar-for-buttons/1604 "2014-06-21T08:00:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![madiha](https://forum.sambapos.com/user_avatar/forum.sambapos.com/madiha/32/13950_2.png) [@madiha](https://forum.sambapos.com/u/madiha)\
**Post date:** [June 21, 2014, 8:00am UTC](https://forum.sambapos.com/t/how-to-have-scroll-bar-for-buttons/1604/1 "2014-06-21T08:00:09Z")

</div>

i have alot of button for discount how can i scroll down?

 ![](https://forum.sambapos.com/uploads/default/original/3X/f/d/fd637b0c1201566ebfab54c58c6ca099fbf14a36.png)

---

<div class="post-metadata">

**Author:** ![Isaac](https://forum.sambapos.com/user_avatar/forum.sambapos.com/isaac/32/65380_2.png) [@Isaac](https://forum.sambapos.com/u/Isaac)\
**Post date:** [June 21, 2014, 9:36am UTC](https://forum.sambapos.com/t/how-to-have-scroll-bar-for-buttons/1604/2 "2014-06-21T09:36:38Z")

</div>

Your better of implementing a Ask for Discount Amount button where you can select the discount amount via a pop up. See:

> [@\[New 4.1.37\] Ask Question Action](http://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414):
>
> This feature was a missing piece in our automation system. Now you can ask questions to user and execute a command with selected command parameter. I’ll add more tutorials but I’ll show some brief examples. For example you can ask if he wants to print a bill. It executes Print Bill command by sending selected Button to Command Value parameter. You can define values for buttons. For example that can be asked when discount button clicked. When No discount butto…

Scroll bars are generally not a good idea on touchscreens its just makes things a little more complicated. A good POS design should not have any scroll bars. I would suggest you do the above for your discount button problem. I would also suggest you reduce your button height for your categories and products so that you have no scroll bars.

---

<div class="post-metadata">

**Author:** ![JohnS](https://forum.sambapos.com/user_avatar/forum.sambapos.com/johns/32/24916_2.png) [@JohnS](https://forum.sambapos.com/u/JohnS)\
**Post date:** [June 21, 2014, 10:17am UTC](https://forum.sambapos.com/t/how-to-have-scroll-bar-for-buttons/1604/3 "2014-06-21T10:17:30Z")

</div>

Just put all the discount amounts in the Values field in the Automation Command Button so you only need one button.

---

<div class="post-metadata">

**Author:** ![madiha](https://forum.sambapos.com/user_avatar/forum.sambapos.com/madiha/32/13950_2.png) [@madiha](https://forum.sambapos.com/u/madiha)\
**Post date:** [June 21, 2014, 10:25am UTC](https://forum.sambapos.com/t/how-to-have-scroll-bar-for-buttons/1604/4 "2014-06-21T10:25:15Z")

</div>

@Isaac i try to implement the discount via show message but my logic didnt work

@JohnS if i put values under discount button how will i send these values in action for computing discount?

---

<div class="post-metadata">

**Author:** ![JohnS](https://forum.sambapos.com/user_avatar/forum.sambapos.com/johns/32/24916_2.png) [@JohnS](https://forum.sambapos.com/u/JohnS)\
**Post date:** [June 21, 2014, 10:51am UTC](https://forum.sambapos.com/t/how-to-have-scroll-bar-for-buttons/1604/5 "2014-06-21T10:51:45Z")

</div>

Look at the variables that the Rules give you.

 ![](https://forum.sambapos.com/uploads/default/original/3X/8/d/8d398859cf258c3cef802214be70ccf8760006d4.png) 

`[:CommandValue]` will pass the Automation Command Button Value to your Action

---

<div class="post-metadata">

**Author:** ![madiha](https://forum.sambapos.com/user_avatar/forum.sambapos.com/madiha/32/13950_2.png) [@madiha](https://forum.sambapos.com/u/madiha)\
**Post date:** [June 21, 2014, 11:29am UTC](https://forum.sambapos.com/t/how-to-have-scroll-bar-for-buttons/1604/6 "2014-06-21T11:29:45Z")

</div>

is this correct ? its not working

 ![](https://forum.sambapos.com/uploads/default/original/3X/1/9/1969ba1605db5bf1de755a1e5679a5da2a468372.png)  
 ![](https://forum.sambapos.com/uploads/default/original/3X/8/c/8c882ae34fe3014b93bf7ff2a8f4456890907adc.png)

---

<div class="post-metadata">

**Author:** ![JohnS](https://forum.sambapos.com/user_avatar/forum.sambapos.com/johns/32/24916_2.png) [@JohnS](https://forum.sambapos.com/u/JohnS)\
**Post date:** [June 21, 2014, 12:08pm UTC](https://forum.sambapos.com/t/how-to-have-scroll-bar-for-buttons/1604/7 "2014-06-21T12:08:14Z")

</div>

What values do you have set in the Automation Command Button?

---

<div class="post-metadata">

**Author:** ![madiha](https://forum.sambapos.com/user_avatar/forum.sambapos.com/madiha/32/13950_2.png) [@madiha](https://forum.sambapos.com/u/madiha)\
**Post date:** [June 21, 2014, 1:00pm UTC](https://forum.sambapos.com/t/how-to-have-scroll-bar-for-buttons/1604/8 "2014-06-21T13:00:57Z")

</div>

![](https://forum.sambapos.com/uploads/default/original/3X/d/9/d95074c9f80a2b210abe9c71695942ffedf9da2d.png)

---

<div class="post-metadata">

**Author:** ![JohnS](https://forum.sambapos.com/user_avatar/forum.sambapos.com/johns/32/24916_2.png) [@JohnS](https://forum.sambapos.com/u/JohnS)\
**Post date:** [June 21, 2014, 1:17pm UTC](https://forum.sambapos.com/t/how-to-have-scroll-bar-for-buttons/1604/9 "2014-06-21T13:17:13Z")

</div>

Try just the numbers.

```
5
10
15
20
50

```

As you are passing **5% Discount** into the Action and that’s why it cannot calculate properly.
