Create a condition script to hide or show a category in the Portal Data List widget.
Procedure
-
Navigate to .
-
On the Extension Points page, in the API Name column search field, enter *datalist.
-
Select the sn_ciwf_ui_cmpnt.DatalistCategoryConditionScript in the API Name column.
If a message appears about the application scope, select here to be able to edit the record.
-
On the DatalistCategoryConditionScript page, in the Related links, select Create implementation.
-
In the Script field, paste the following CSS code:
showCategory: function(category_id) {
/*
if(category_id=="cases_category"){
return true;
}
*/
return true;
}
-
Copy the name of a condition script from the Name field.
-
Select Update.
-
Navigate to your portal home page.
-
On the Data List widget, press Control+right-click.
-
Select Instance Options.
-
In the Behavior section, paste the name that you copied into the Categories condition script field.
-
Select the condition script from the list.
-
Select Save.