- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2025 04:41 PM - edited 05-17-2025 07:45 PM
How can i change the focus indicator in the "Create New Incident" page to the different field, like "Service Offering," in the page
Now it is default set to the "Number."
I think i can do it On load client script, But it not going through
Please share me the insights, if any
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2025 09:25 PM
Hi @srisaiteja ,
You're right — to change the focus to a different field like "Service Offering" when the "Create New Incident" form loads, you can use an onLoad client script.
tryy this script :
function onLoad() {
setTimeout(function() {
var field = g_form.getControl('service_offering');
if (field) {
field.focus();
}
}, 300);
}
g_form.getControl('field_name') returns the HTML element of the field.
'service_offering' must be the actual name of the field (not the label).
Delay using setTimeout helps if the field is not immediately available when the form loads.
Make sure your script is scoped properly and there are no console errors.
Yes, it’s possible using an onLoad client script + a small timeout. Make sure the field name is correct and visible on the form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2025 09:25 PM
Hi @srisaiteja ,
You're right — to change the focus to a different field like "Service Offering" when the "Create New Incident" form loads, you can use an onLoad client script.
tryy this script :
function onLoad() {
setTimeout(function() {
var field = g_form.getControl('service_offering');
if (field) {
field.focus();
}
}, 300);
}
g_form.getControl('field_name') returns the HTML element of the field.
'service_offering' must be the actual name of the field (not the label).
Delay using setTimeout helps if the field is not immediately available when the form loads.
Make sure your script is scoped properly and there are no console errors.
Yes, it’s possible using an onLoad client script + a small timeout. Make sure the field name is correct and visible on the form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 11:17 AM
Thanks Tejas its working