AnsweredAssumed Answered

Script Custom Dialog appearing when I don't want it to

Question asked by lindseym on Mar 1, 2017
Latest reply on Mar 1, 2017 by lindseym

Im working on a script that onobjectexit script triggers.


What I am expecting to get:


When Field (Project::Sort By 1) equals either:   "Location Sheet, Building, Level, Location" or "Location Sheet, Level, Location" I want the script to exit and do nothing.


When the Field does not contain those phrases, I want it to show a custom dialog with a warning.




What I am getting:


When the field = "Location Sheet, Building, Level, Location" , the script exits


When the field = "Location Sheet, Level, Location" , the dialog shows up     <------- this is the problem


What the field = "Any other text", the dialog shows up.




Here is a screen shot.


Screen Shot 2017-03-01 at 2.30.05 PM.png