AnsweredAssumed Answered

Script behaves differently when activated with a script trigger

Question asked by on Dec 9, 2018
Latest reply on Dec 10, 2018 by

I have a very simple script I want to activate "OnObjectExit" based on the value in that field. The script tests for a condition, and if that condition is True, then it should direct the user to a particular field.


Here is a copy of the script:


When the script triggers, it displays the dialog box if the value is less than 200, but once the "OK" button is pressed, it seems to ignore line 4 and just proceeds to next field in the tab order.


Here is the dialog box options: (There are no "Input Fields" defined)



If the script is run manually, it displays the dialog as expected, and once the "OK" button is pressed, then moves the cursor to the "Corrective Action" field and the correct repetition as expected.


I have tried replacing line 4 with a run script command that runs a script to move the cursor, but that doesn't work either.

It seems as though when the script is triggered, pressing the "OK" button simply exits the script at that point.


I would appreciate if someone can shed some light on this.


Many Thanks

Craig Harvey