AnsweredAssumed Answered

Prevent field editing?

Question asked by sydbarker on Mar 4, 2016
Latest reply on Apr 27, 2017 by sawhat

I am trying to create a script that pops up a dialog whenever a field that already has a value is being modified. Only problem is I am using a script trigger, so it pops up the message even when the record is blank. How can I make sure that the message only appears whenever a field that has a value is being changed?


The script I'm using is


Show Custom Dialog ["Field Save"; "Are you sure you want to modify this field? A value already exists."]

If[Get(LastMessageChoice) = 2]

     Revert Record/Request[No dialog]

End If