Can you show me how to make the buttons below from the V5 feature thread? I tried everything from adding states, rules and actions but I’m too much of a noob to get it to work.
I’ve tried this: {ENTITY STATE:WPStatus}’==‘WPopen’ and this {SETTING:ISCURRENTWORKPERIODOPEN} but I couldnt get the status to update. Appreciate it and Thanks a bunch!!
WorkPeriod is [=('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? 'OPEN' : 'CLOSED')]
This topic contains detailed info about that button but it is currently under V5 Beta category. @QMcKay do we have same info somewhere else? If not maybe we can convert that topic to a V5 Question.
The Caption for the Work Period Open/Close button (the big red button in the upper-right) is this:
[='{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? '<block 25,20,25,20 Green>' : '<block 25,20,25,20 Red>']WorkPeriod is<linebreak/><b>[=('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? 'OPEN' : 'CLOSED')]</b><linebreak/><linebreak/>[=TN('{REPORT TICKET COUNT:(TS.Status=Unpaid)}')>0 ? 'Cannot Close Workperiod<linebreak/>with ' + TN('{REPORT TICKET COUNT:(TS.Status=Unpaid)}') + ' Open Tickets<linebreak/><linebreak/>Click here to see<linebreak/>Open Tickets' : 'Click here to<linebreak/>' + ('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? 'Close' : 'Open') + '<linebreak/>the WorkPeriod']</block>
Here is how it looks when the Work Period is open:
The text and colour is based on the formula. In this case, using Ternary operators, we control what is displayed on the button. Simplified, it looks like this:
WorkPeriod is [=('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? 'OPEN' : 'CLOSED')]
Thank you for the clarification guys. Working great now!!.
Adding End work period and setting value to TRUE works as intended also.
Finally got everything customized to go live. So happy, thanks a bunch guys! and everyone on this board
I don’t want “step by step guide” I want to help with one trouble with action. I tried to search in forum, read other guides. But I can’t find it!
BTW, I have previously asked for a tutorial on the syntax of automation, but I was told that this does not exist. And when I ask for help, you send me to a non-existent tutor.
So, pls send to me a tutorial, or write what am I doing wrong?
I did everything as in other guides and I never had such a problem!
Look. I see that I need to create an “action”. I am creating “WP Ask Question” as “Ask Question”. When I add this “action” to the “rule”, then I cannot add parameters in this window, since there are none. Check out the screenshots. It is impossible to be wrong here.
You put [:Field Name] in the action and it carries the open field into the action.
The fields in actions can be set within the action or using above placeholder makes the field editable from the rule where it is used.
If action already in use you do need to remove it from rule, save and re add it.
Watch some of my beginners automation video tutorials for better understanding of the basics kf needed.