Tree Picker group selection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2008 12:34 AM
I have a hierarchy of groups, done with some inactive parents groups attached to the active child
In the example attached, "Business process owners" is an inactive parent group, and all the "EM******" are the active children.
I would like to be able to select only the active groups, or the second level of hierarchy (the same for me) in the tree_picker selection.
I didn't find anything about it here:
http://wiki.service-now.com/index.php?title=Tree_Picker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2016 12:52 PM
I came up with a halfway solution. Couldn't find away to prevent them from selecting the category, but I added a validation Business Rule before update. Add in whatever conditions you want, and then add in code similar to this:
(function executeRule(current, previous /*null when async*/) {
current.your_field_name_here.setError("Please select a service, rather than a category.");
action.setRedirectURL(current);
current.setAbortAction(true);
})(current, previous);