AnsweredAssumed Answered

Script to require a field input before moving on to other fields in a layout

Question asked by miw on Mar 1, 2010
Latest reply on Mar 1, 2010 by philmodjunk

Title

Script to require a field input before moving on to other fields in a layout

Post

I am trying to write a field script trigger for both OnObjectSave and OnObjectEnter that requires a user to select information from a pull-down menu and not leave that data field blank (they must select a data point from the pull down list) before they can go to the next field in the layout (the next field being dependent on the selection made in the prior field).  Here is what I have written so far for the script trigger for the COuntry:Country layout field:

 

If [IsEmpty (Country:Country)]

Go to Field [Country:Country]

Enter Browse Mode [Pause]

Else

Go to Field [Country:City]

End If

 

However, with this script I cannot keep the input field focused on Country:Country until a selection is made; I can still tab past it to the next field.  I need the Country:Country field completed before moving on to other fields on the input screen.  How can I accomplish this via a script?

 

Please help!

 

Outcomes