WF5 - Access value of button bar
Hi,
Does anybody know how to run a process depending on a clicked button in a button bar (not the footer) in Workflow 5?
I have trouble with WF5; I have a Display form with a Button bar with 4 buttons. I have added a click event to this button bar, with 4 'if' events; I want different things to happen depending on the clicked button. However, I don't manage to access the value of the button bar, i.e. the value of the clicked button.
I tried:
=$DisplayForm.state.ButtonBar.value
And I logged the ButtonBar in total (without value) but I can't find a clue. It's not a result, but rather a state, because I want to stay in the Displayform; I just want to change the viewer.
Thanks in advance, highly appreciated!
0
-
Hi Yannick,
There is a separate community page for questions, comments and ideas for Workflow 5.
You can access it here (https://communities.geocortex.com/s/topic/0TO60000000QpG5GAK/workflow) .0 -
But to answer your question...on the click event, use a switch and then input value for the switch use this "=$DisplayForm.event.value", then use your value for each button for each line that comes from your switch.
This stops you from using multiple IF activities and keeps things better organized.0 -
Ah, sorry, I didn't know that, I'll go there next time. Thanks for the tip and the answer! 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer