# \[New 4.1.37\] Ask Question Action

**URL:** <https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414>\
**Category:** General\
**Created:** [May 31, 2014, 7:39am UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414 "2014-05-31T07:39:19Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![morshed1](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/m/8c91f0/32.png) [@morshed1](https://forum.sambapos.com/u/morshed1)\
**Post date:** [June 6, 2014, 8:59am UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/21 "2014-06-06T08:59:36Z")

</div>

Hi @emre,@Johns,

i have identified following issue, not all text appearing for ask question Buttons.

 ![](https://forum.sambapos.com/uploads/default/original/3X/2/b/2b18cecb03823c22e118e55459f361b522f50878.png)

 ![](https://forum.sambapos.com/uploads/default/original/3X/6/9/69211b45ceb16c078a3e416f5b82670f241aaf91.png)

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [June 7, 2014, 10:46am UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/22 "2014-06-07T10:46:35Z")

</div>

Button wrapping issue resolved for next release.

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [June 12, 2014, 7:50pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/23 "2014-06-12T19:50:09Z")

</div>

For 4.1.38,

- Background color selection feature added.
- Executing without setting Automation Command so it can be used instead of Display Message action.
- Button colors can be set by using `[Caption]=[Parameter]:[Hover Color];[Button Color]` syntax. For example `%10=10:Blue;White,%20=20:Red;Black` setting will produce two buttons with:
  - Button 1: Caption = %10, Parameter = 10, Hover Color = Blue, Button Color = White
  - Button 2: Caption = %20, Parameter = 20, Hover Color = Red, Button Color = Black

---

<div class="post-metadata">

**Author:** ![gerlandog](https://forum.sambapos.com/user_avatar/forum.sambapos.com/gerlandog/32/39076_2.png) [@gerlandog](https://forum.sambapos.com/u/gerlandog)\
**Post date:** [June 12, 2014, 9:03pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/24 "2014-06-12T21:03:30Z")

</div>

GREAT, the greatest is getting greater!!!

G

---

<div class="post-metadata">

**Author:** ![diannurlia](https://forum.sambapos.com/user_avatar/forum.sambapos.com/diannurlia/32/917_2.png) [@diannurlia](https://forum.sambapos.com/u/diannurlia)\
**Post date:** [December 24, 2014, 4:11am UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/25 "2014-12-24T04:11:00Z")

</div>

Ask Question Action for service charge guide please…

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [December 24, 2014, 2:04pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/26 "2014-12-24T14:04:03Z")

</div>

Simple method to add service charge:

> [@How to add services charge?](https://forum.sambapos.com/t/how-to-add-services-charge/380/2):
>
> You need to create an account for service charges. We’ll track how much servicing amount we’ve applied through this account.

---

<div class="post-metadata">

**Author:** ![hadjieff](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/h/3be4f8/32.png) [@hadjieff](https://forum.sambapos.com/u/hadjieff)\
**Post date:** [March 28, 2015, 2:32pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/27 "2015-03-28T14:32:10Z")

</div>

How to add “ask question” action in button “Close Ticket” YES-NO

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [March 28, 2015, 2:41pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/28 "2015-03-28T14:41:41Z")

</div>

Find the Rule for Close Ticket and put Ask Question Action there. Then add a rule for automation command executed put Close Ticket action in it and put a constraint for command value - true or however you setup your command value.

Dont forget to take out the Close Ticket action from the Close Ticket rule.

---

<div class="post-metadata">

**Author:** ![hadjieff](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/h/3be4f8/32.png) [@hadjieff](https://forum.sambapos.com/u/hadjieff)\
**Post date:** [March 28, 2015, 3:22pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/29 "2015-03-28T15:22:41Z")

</div>

![](https://forum.sambapos.com/uploads/default/original/3X/3/6/362b87a78ddf230f719a26d0e123c9ca08801608.jpeg)

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

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [March 28, 2015, 9:04pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/30 "2015-03-28T21:04:50Z")

</div>

Your configuration means ask question will trigger Close ticket Command and the Command Value will be `Y` or `n` inside rule. So you’ll need two separate rules. One for asking question and the other one for handling the answer. You tried to handle both in a single rule.

If you need a confirmation you can simply enable confirmation for `Close Ticket` automation command.

---

<div class="post-metadata">

**Author:** ![honey3d40](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/h/43a26b/32.png) [@honey3d40](https://forum.sambapos.com/u/honey3d40)\
**Post date:** [August 2, 2015, 6:23pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/31 "2015-08-02T18:23:33Z")

</div>

Once a customer is cash out a message will appear asking "Do you want to print customers receipt?

This what i have so far:

 ![](https://forum.sambapos.com/uploads/default/original/2X/7/70a01a0d7a2a1b54ea6b4bd7324453c16ca0c82a.png)  
what is my next step

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [August 2, 2015, 6:42pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/32 "2015-08-02T18:42:14Z")

</div>

You would want to change buttons to Yes=Print Bill,No and remove print bill automation command name.  
Then make new rule with event automation command executed, set the constraint to command value equals print bill.

 ![](https://forum.sambapos.com/uploads/default/original/2X/f/fdd1bea58b5486ede1b3a91aad2899f3b41d2bc2.PNG) 

The buttons bit where Yes=Print Bill makes it so pressing yes sends automation command value of Print Bill which is what makes that new rule fire. No button has no value so nothing happens.

You would also obviously need to put the ask question in to a rule.  
Simplest example would be a new rule on event payment processed.

![](https://forum.sambapos.com/uploads/default/original/2X/e/e97ed388e0084e8feeb9c566e9e635c6bec8b4b5.PNG)

Personally I would use a generic ask question action using [: \_\_\_\_] to carry the fields into the action settings.  
ie;  
Question: [:Question]  
Buttons: [:Buttons]  
Command Name [:Command Name]  
Background: [:Background]

Doing this means you have one ask question action you can use many times, then when you add the action to a rule the options/fields from the action are available in the action entry in the rule itself meaning you dont need to have lots of the same actions each having slightly different settings as the options are defined on each individual use of that action.

Like this;

 ![](https://forum.sambapos.com/uploads/default/original/2X/7/7c3a3421670973575c58d633d48878bc086ff227.PNG) 

![](https://forum.sambapos.com/uploads/default/original/2X/8/8ba2ac70f26f5627d80cb2d6ce900d175e67372c.PNG)

---

<div class="post-metadata">

**Author:** ![honey3d40](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/h/43a26b/32.png) [@honey3d40](https://forum.sambapos.com/u/honey3d40)\
**Post date:** [August 2, 2015, 9:37pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/33 "2015-08-02T21:37:58Z")

</div>

It works as far as the message box showing but the receipt is not printing when I press yes

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 2, 2015, 10:46pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/34 "2015-08-02T22:46:32Z")

</div>

You missed something. Show your work please?

---

<div class="post-metadata">

**Author:** ![Marian](https://forum.sambapos.com/user_avatar/forum.sambapos.com/marian/32/11477_2.png) [@Marian](https://forum.sambapos.com/u/Marian)\
**Post date:** [August 4, 2015, 1:53pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/35 "2015-08-04T13:53:52Z")

</div>

I tried tried the same thing like @honey3d40 , the same thing, still prints.  
This is another setup:  
 ![](https://forum.sambapos.com/uploads/default/original/2X/e/e60b8e799280c49e710f550b46590c22ef948001.PNG)

 ![](https://forum.sambapos.com/uploads/default/original/2X/d/de8d9f90e36e3d93c1adac592cb042eeb32da4ce.PNG)

Does not work.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [August 4, 2015, 2:03pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/36 "2015-08-04T14:03:36Z")

</div>

You shouldnt have your print bill and ask question in the payment processed rule.  
Move the print bill action into a new rule (event = automation command exacuted) with the constant of command value =‘Print Bill’

The `Yes=Print Bill` is firing a command value of Print Bill which is what you want to pick up on.  
This is what makes it print if yes is pressed or nothing if no…

---

<div class="post-metadata">

**Author:** ![Marian](https://forum.sambapos.com/user_avatar/forum.sambapos.com/marian/32/11477_2.png) [@Marian](https://forum.sambapos.com/u/Marian)\
**Post date:** [August 4, 2015, 3:26pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/37 "2015-08-04T15:26:14Z")

</div>

Hello,  
These are the rules,actions…  
 ![](https://forum.sambapos.com/uploads/default/original/2X/8/8d7cfb5ba2454676c467b19d0c637728c1613bed.PNG)

![](https://forum.sambapos.com/uploads/default/original/2X/6/6f4396cebf7cd9e3f3aa4bb7927a0dc041f271c3.PNG)

![](https://forum.sambapos.com/uploads/default/original/2X/e/e386fc25100323c69a44f365c4a1b4a02888946a.PNG)

 ![](https://forum.sambapos.com/uploads/default/original/2X/2/245c4993ebe73e584a551f9c756e490001e26cbf.PNG) 

 ![](https://forum.sambapos.com/uploads/default/original/2X/4/4f6e3a2c45cfb3829a8cc8ce2ded82b4b3bf4801.PNG) 

Thanks

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [August 4, 2015, 3:43pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/38 "2015-08-04T15:43:17Z")

</div>

1. You dont need the automation command (button)

2. Take the execute print bill action off the payment processed rule.

3. change the automating command executed rule to be the execute print bill action not the ask question.

The flow will be;

Payment Processed --\> Ask Question --\> Yes=Y --\> Rule for Automation Command Executed --\> Print Bill  
Payment Processed --\> Ask Question --\> No --\> Nothing for the Automation Command Executed rule to pick up on.

Make sense?

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 4, 2015, 4:00pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/39 "2015-08-04T16:00:05Z")

</div>

@Marian If you are wanting the ask question action to be the decider which action to do then does it make sense to also put the print action in the same rule that asks the question?

If you slow down and read what JTRTech wrote a few posts up he showed you how to use it additionally look up the tutorial for ask question.

---

<div class="post-metadata">

**Author:** ![Marian](https://forum.sambapos.com/user_avatar/forum.sambapos.com/marian/32/11477_2.png) [@Marian](https://forum.sambapos.com/u/Marian)\
**Post date:** [August 4, 2015, 9:29pm UTC](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414/40 "2015-08-04T21:29:07Z")

</div>

I am stupid:

![](https://forum.sambapos.com/uploads/default/original/2X/4/4e2cd6c695e15dc165ad3b58404348253807908d.PNG)

![](https://forum.sambapos.com/uploads/default/original/2X/2/20479b6d5a74814b5c4883a38d3518e15511054b.PNG)

![](https://forum.sambapos.com/uploads/default/original/2X/a/a72d00d821efe59bebe4c98c9d127fa22e3961be.PNG)

[Previous page](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414.md?page=1)

[Next page](https://forum.sambapos.com/t/new-4-1-37-ask-question-action/1414.md?page=3)
