How to use Constrain for paid ticket permission?

Just put No=No of you dont have a comand value for No all that will happen when you press no is the ask question box will disappear

hi @JTRTech
here is the rule

No the rule with constraint of automation command name = ‘Rechung drucken’

ah thats the simple print bill rule

so i think it not makes diference if its this rule or another i used this rule only for testing…

the ask question triggers this rule via the automation command name.
If you want it to use the buttons you need to add comand value constraint to this rule.
either value = yes or does not = no.
Since it is only a yes no you can use either, if it was multi choice ask question you would want to to does = and not have a rule where command value = no

The Ask Question Action fires an Automation Command (ie. Print Bill) and passes the value of the clicked Button as the [:CommandValue] (ie. Yes or Cancel).

The Command Values have no special meaning - they are arbitrary. That is, the word “Yes” and “Cancel” have no special function. They are simply words/values. They could be blah123 and fluffy57, and those words become the [:CommandValue] that is passed to the AMC when “Si” or “No” buttons are clicked, respectively.

buttonCaption1=CommandValue1,buttonCaption2=CommandValue2,buttonCaption3=CommandValue3
Si=Yes,No=Cancel
Si=blah123,No=fluffy57
Si,No         ... if no CommandValue is specified, then the CommandValue becomes the button caption word
Si=Si,No=No   ... effectively the same as above


The Rule for the AMC Name which is triggered from the Ask Question Action should have a Command Value Constraint.

The [:CommandValue] that is passed from the Ask Question Action will be Yes or Cancel (or blah123 or fluffy57), depending on which button was clicked.

We can use that [:CommandValue] here to constrain this Rule, so that this Rule will only fire when the [:CommandValue] is Yes (or blah123)… or whatever.

1 Like

Yeah that works thank you now i understand… :+1:

thanks for the help you all!

If you want a video tutorial i did one for show change message with option print copy of receipt;