Collapsed section in agent workspace form. g_aw.sectionExpanded is not working as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 09:12 PM
Hi All,
There is a requirement where we are supposed to collapse the sections by default. We have used g_aw.sectionExpanded('section_name',false) on load of the form. This collapse the section as expected.
However, when we try to save this from agent workspace the whole details tab disappears.
Please help me out if anyone has faced similar issues.
@Ankur Bawiskar
@Omkar7
Kindly help if you can. Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 09:56 PM
Hello,
For me it works perfectly fine with the below code:-
function onLoad() {
g_aw.setSectionExpanded('notes', false);//notes is the name of the section
}
You can follow the below article and check if you are missing something:-
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 10:34 PM
Hi @Saurav11
I have used the same documentation.
I am getting the below error in console when i try to save this:
Thanks,
Swetang Kashyap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 10:43 PM
hello,
Can you paste the screenshot of you client script code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 10:54 PM
Hi @Saurav11
function onLoad() {
g_aw.setSectionExpanded('case', false);
g_aw.setSectionExpanded('network', false);
g_aw.setSectionExpanded('site_details', false);
g_aw.setSectionExpanded('alert_information', false);
g_aw.setSectionExpanded('credentials', false);
g_aw.setSectionExpanded('closure_information', false);
// g_aw.setSectionExpanded('case', false);
g_aw.setSectionExpanded('procedure', false);
}