Quick question. In order to get a value from the Ask Action do you have to pass it using the automation command option on the ask action?
I was trying to get a value from the user and I used:
Rule
Ask
Store Value
Action
When using [:CommandValue] in that same rule the value was always blank. I finally used the automation command option in the Ask Action and a second rule.
You can define values to buttons. I’m not at the computer to show you but I know it’s documented in the forum. Look up ask question and check out the syntax for the buttons.
Yes, I tried 1=1,2=2,3=3, etc… Then after the action fired I tried to store the [:CommandValue] in the same rule that executed the ask action. I also used a message to provide an alert. It was always blank.
The only time I was able to get a value was to create second rule and direct the “Ask Action” to the second rule. Then the [:CommandValue] was accessible.
I’ve already changed it around, but originally it was…
Rule
Match -> Automation Command Executed = Print_SplitBill
Then…
Ask
Store [:CommandValue]
Message/Alert [:CommandValue] - for testing
Action -> Print Job/Split Bill
Doing it this way, there wasn’t any value sent to the messagebox. If you think this should work I can switch it back and provide screenshots. I just wanted to make sure that you don’t need to have the “Ask Action” execute a new automation command to pass the value.
The command value would be the one available to that rule when triggered if one.
You would use the command name in ask question to trigger a new rule and the command value would be the button name or value if specified.