- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 12:16 AM
Hello,
I have an embedded list of outages on my incident form (please see below print screen) .
I only need this list to be visible for major incidents (major_incident_state = 'Accepted').
Any idea how to do this?
Many thanks,
Milan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 03:33 AM
Hello Milan,
There is one field available on Client script isolated script. please add that field on this form and uncheck it.
Please check the below screenshot and yellow marked text.
Now this script will definitely run.
Thanks,
Abhishek Gardade
Abhishek Gardade

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 12:21 AM
Hi
Have you gone through the link below?
Also you can try an onLoad client script which would look something like this ,
function onLoad() {
if (your condition) {
g_form.setSectionDisplay("embedded_list",false);
}
}
Mark correct if my answer helped you.
Regards,
Omkar Mone.
www.dxsherpa.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 12:38 AM
Hi Omkar,
how do I determine the "embedded_list" argument in below function - its embedded list sourced from "task_outage" table but this argument does not work...
Many thanks,
Milan
g_form.setSectionDisplay("embedded_list",false);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 12:57 AM
Hi
Check the below Screenshot how it is done :
Remember to uncheck the Isolate script checkbox so that we can go ahead with the DOM manipulations. PFB the script :-
function onLoad() {
var sections=g_form.getSections();
for (var i=0;i<sections.length;i++)
{
var embedded_elements=sections[i].getElementsByClassName("embedded");
// Loop through those elements and when we get a valid match of the table name of the embedded list we hide it
for (var i_element=0;i_element<embedded_elements.length;i_element++)
{
embedded_elements[i_element].hide();
}
}
}
Regards,
Omkar Mone.
www.dxsherpa.com

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 01:50 AM
Hi
Can you mark correct answer if I have resolved your query to close this thread?
Regards.