I am working on a discount button which allows only 1-30 percent discount. In the tutorial for the discount button I see an expression which is for 1-10%, it is: [?Discount Rate:[1-9]|10 It]
This works nicely for 1-10 however I am unsure how to accept 1-30%. Can anybody please help with this.
Although doesn’t mention setting a maximum.
Perhaps it was setting default value of 10 and the mask only allowing single digit…
[?Prompt] expression offers these options [?<prompt>;<mask>;<default value>;<flags>;<keycodes>]
If you made it a two stage flow with the prompt in an execute automation command in value fields you could define all sorts of prompts should a value be entered wrong using constraints on the command value lide [:CommandValue] > 30 on an ask question prompt saying discount only possible up to 30% and then your action to apply discount would have constraint of [:CommandValue] < 30