- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2019 05:18 AM
Hello,
I have an onChange() client script on "state" field - once this field is changed I need the cursor to be focused on "Additional comments" field however this does not work:
g_form.getElement('incident.comments').focus();
This method works for other fields however comments - label: Additional Comments field is according to dictionary located in task table, there is a dictionary override for this field as per below but not sure how this works...
Any idea how this works?
Many thanks,
Milan
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2019 10:06 PM
Hi
The solution that Raf provided, keeping the same, can you confirm if the isolate script checkbox on your client script is checked or unchecked? If it is checked, please uncheck it and try once.
Regards,
Omkar Mone.
www.dxsherpa.com

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2019 10:09 PM
Are you able to share screenshot of the client script form?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2019 10:06 PM
Hi
The solution that Raf provided, keeping the same, can you confirm if the isolate script checkbox on your client script is checked or unchecked? If it is checked, please uncheck it and try once.
Regards,
Omkar Mone.
www.dxsherpa.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2019 10:23 PM
Hi both,
after unchecking "isolate script" in my client script form this works:
var comments = gel("activity-stream-textarea");
if (comments){
comments.focus();
}
It focuses on the "Notes" part of the form however the blinking cursor is not present in the additional comments field itself, however this is still good (don't even know if it's even possible to have a blinking cursor present using the "focus" method...)
Appreciate your help,
Milan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2019 10:25 PM
Seems to be working just fine.
Thanks again!
Milan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2019 10:31 PM
We're glad that we were able to help 🙂