How to scroll to empty 'Resolution notes' field on click of 'Resolve' button in workspace?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 02:49 AM
If 'Resolution notes' field is empty and when agent clicks 'Resolve' button in workspace, 'Resolution notes' field should become mandatory and control should scroll to it.
I tried with below methods in workspace but no luck.
g_form.showFieldMsg('close_notes', 'Resolution notes are required.', 'error', true); //it works only on onLoad client script.
g_form.setMandatory('close_notes', true);
g_form.getControl('close_notes').focus(); //Not setting focus to the field
g_form.setMandatory('close_notes', true);
g_form.getControl('close_notes').scrollIntoView(); // it does not wait, setting state to 'Resolved' even though field is empty
Any other thoughts would be highly appreciated.
When I make the field mandatory with below line of code, 'Resolution notes' label and textbox is not highlighted with red color. When I double click 'Resolve' button, some OOTB script is running and setting 'Resolution notes' label and textbox is highlighted with red color. Can you help me how to achieve this?
g_form.setMandatory('close_notes', true);
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2024 05:27 AM
hello @Guruvendra J
did you find a solution ? i have the same requirement