Change Focus to Field on Page Load
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2008 08:24 AM
List,
Does anyone know of a way to set focus to a field on load of a page? Currently when we 'create a new' Incident, initial focus is on the Case ID field... We'd like it to set focus to the 'username' field instead.
Any ideas would be greatly appreciated.
Thanks!
- Labels:
-
Orchestration (ITOM)
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2008 12:13 AM
By default, the system will automatically focus on the first writable field (counting top to bottom, left to right I believe) that it can find.
In most incident forms, the number is the first field it'll try (as it's in the upper left corner), and then if the number field isn't writable, it'll move down to the next field, which is usually 'Username' (Or Caller, User, etc).
We ship a 'task.number' ACL that basically locks the number field down for everyone but admins, meaning that if your form is setup like I mentioned above, the system SHOULD be focusing on the second field in the form.
I suspect that either your form is setup differently, you've deactivated the task.number ACL, or you're attempting this as an Admin.
Any of these apply?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2008 06:41 AM
Jerrod, you nailed it... I was logging in as the admin, and focus was being set to the first field (Case ID) even though it was 'read only.' That was going to be my next question (why is it allowing me to modify the case number even though it's read only?).
Logging in as a regular ITIL user set focus to the right field.
Thank you all for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2016 11:06 PM
Hello Mark,
I have the same the requirement but want to use in the service portal.On change of the record producer variable I want to focus in the short description..
document.getElementById won't work over there.
Thanks
Saranya