How to place a curser on the required fields when the new form loads
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 11:34 AM
I have a field called "type" on engagement form.
When we try to create a new engagement using new button , when the new form opens my curser need to be on the type field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 11:39 AM
Hello,
Please check the below article for the same:-
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0694100
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 10:12 PM
Hi Saurav,
I tried with the two solutions . But the curser is not going to the type field and it is going to place in the Name field only.
function onLoad() {
g_form.getControl('type').focus();
// g_form.getControl('type').scrollIntoView();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 10:14 PM
today, when we use the New button to build a new engagement, the Vendor Engagement – New Record form goes to the Name field first. We would like the cursor to be in the Type field first. There is an existing business rule which populates the Name field after we have selected the Type field. Keep Type as the 3rd field from the top, in it’s current position.