AnsweredAssumed Answered

Confirm Choice Script

Question asked by ChrisJohnston on Nov 27, 2013
Latest reply on Nov 27, 2013 by ChrisJohnston

Title

Confirm Choice Script

Post

     I would like to show a custom dialog and ask my user if they are sure they want to change a dropdown list. I am not seeing a way to do it via a Script with a Script Trigger. I set a variable $b4 and have tried all of the Script Trigger options. They seem to only grab the variable that the value list is changing to, never the value before clicked. I need the variable to be the previous value so the Script can set it back if they no to being sure of the change.

Set Variable [ $b4; Value:Get(ActiveFieldContents) ]
Show Custom Dialog [ Title: "Sure?"; Message: "Are you sure you want to do that?"]
If [ Get(LastMessageChoice) = 1 ]
     Set Field [ STORAGE::stor_type ; $b4]
End If

     Am I going abuout the correct way?

Outcomes