17
Views
3
Comments
Solved
How to get value of a variable before Confirmation Message evaluates?
Question

Hi All,

The problem is how to get the Confirmation Message on a Button to read the current value of a variable before showing on the screen?

For e.g. I have a combo box with values (Red,Yellow,Green). On Preparation for the screen the value is Red, however I change the value to Green. 

When I click Save: I wish to evaluate the string before the Save Action is called. And use an If statement for e.g. if(variable = 'Green', "You can go", "Please wait on Green"). At the moment it always evaluates as False because there isn't enough time for the updated value on the button click. 

Is getting the value of this variable and executing an If statement in the Confirmation message possible?

mvp_badge
MVP
Rank: #96
Solution

Hi Raphael,

Define the Dropdown widget OnChange action flow, within which introduce an Ajax Refresh node, which will refresh the Button widget (i.e. BtnYes)

See this sample app


Hope this helps you!


Regards,

Benjith Sam