AnsweredAssumed Answered

Preventing cursor movements

Question asked by AlfredoMolinolo on Feb 7, 2019
Latest reply on Feb 7, 2019 by coherentkris

Hi there. I am trying to prevent a cursor from moving to the next field if there is an error:

Two dates fields are passed as parameters to a script that compares them and issues an error if date2 precedes date1

 

The script is triggered in Set Script Triggers of the field date2 (I've tried OnObjectSave and OnObjectExit)

 

If(GetValue(Get(ScriptParameter);1) < GetValue(Get(ScriptParameter);2)

     Issue error

     Go Previous Field (I've also tried go to field[])

endif

 

Every time the cursor jumps to the next field, rather that staying on the offending field or jumping to the previous one...

 

What am I doing wrong?

Outcomes