Script message won't display

SUGGESTED

Can't determine what the problem is for the script message not displaying in SO Entry.   Here is my script.  Client is Premium version 2021

' -------------------------SCRIPT START ------------------------------------
If oSession.CompanyCode <> "ZZZ" and oSession.CompanyCode <> "ZJS" and oSession.CompanyCode <> "XXX" Then
Exit Sub
End If

retVal = oScript.DebugPrint("California DOT Script is running.")

sDOT = "" : sState = ""

retVal = oBusObj.GetValue("UDF_DOT$", sDOT)
retVal = oScript.DebugPrint("DOT = " & sDOT)
retVal = oBusObj.GetValue("UDF_STATE$", sState)
retVal = oScript.DebugPrint("State = " & sState)

if sDOT = "Y" and sState = "CA" then
retVal = oScript.SetError("Do NOT quote BNX! Instead quote Griptwist Male plus TDX.")

End If

When I have the trace window open it shows that the script is running but it won't pop the message.

Parents Reply
  • 0 in reply to JPSinMN

    I spoke too soon. I only want the message to appear and not clear the UD field; by setting it to pre-validate it clears the value in the State UDF field which I can't have it do .... this needs to just be a warning message with the value entered in the field to be saved after clicking off the error message.

Children