Show or Hide Embedded List
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2014 11:14 PM
Hi Guys,
I want to show or hide Embedded list based on a single condition . Have got in other post regarding this and was relly helpful.
But I want to hide /show based on condition, when I select 'Affecting' as Regional as per snap shot below ,only then it should display embedded list(Affected Locations).
My Client script is working perfectly without any condition. For above condition can anyone help how to proceed please.
*********************************************************************************************************************************************
function onLoad()
{
//Type appropriate comment here, and begin script below
var list = $$('div[tab_caption="Affected Locations"]')[0];
if(list.hasClassName('embedded'))
{
list.show();
}
}
**********************************************************************************************************************************************
Many Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2014 04:46 PM
Get the value of the Affecting field and add it in your IF condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2014 11:30 AM
You can use a UI Policy. Check the "Run Scripts" option, set your conditions, and then use the Execute if true script block to show the embedded list and use the Execute if false script block to hide it.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 11:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2023 11:59 AM