• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 224
  • Last Modified:

Set Focus on a particular field in a form

Hello,

I have a field in a form that after update it will chek the UM on whatever they enter on the item field and display it in the UM field but when they enter a invalid item it will pop a message "not valid item" and the next step is ITEM.Setfocus to the item field so they can enter the right one but with that it jumps to the next tab field. it seems the SetFocus doenst work.

Any suggestions on how to handle this is appreciated.

Thanks
Vina
0
tvae
Asked:
tvae
1 Solution
 
Data-ManCOOCommented:
put the check in the before update...in the afterupdate, the data has already been changed.

if the data isn't valid, set the cancel = true...the focus will stay on the field.  

Use the before update for the field you wish to check.

Mike
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now