Tree Picker group selection

sylvain_hauser
Tera Contributor

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

10 REPLIES 10

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);