[Webinar] Streamline your web hosting managementRegister Today

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

Set Focus on a particular field in a form


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.

1 Solution
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.


Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

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