Dynamic Tree Picker User Options

MGanon
Tera Guru

Can I allow users to select the tree picker option? Using incident assignment group as my example, some users want the tree picker while others want the single list? How do I provide the option to choose?

1 ACCEPTED SOLUTION

Munender Singh
Mega Sage

Hi,

As this is attribute at dictionary level so you can't set that dynamically based on user.But,can go with another custom approach

1.Create a new duplicate field with same label as incident assignment group

2.set the dictionary attribute as tree_picker=false(if original field value is true).

3.put a READ ACL on these fields based on role which one should be visible

Regards,

Munender

View solution in original post

7 REPLIES 7

SaiRaviKiran Ak
Giga Guru

By default, the Assignment group field uses the tree picker attribute.

This presents a hierarchical tree view of the reference field's options, which in this case is groups. If a group has sub-groups, they appear in the tree structure. It is possible to expand a group to see its members, but members cannot be selected.

Munender Singh
Mega Sage

Hi,

As this is attribute at dictionary level so you can't set that dynamically based on user.But,can go with another custom approach

1.Create a new duplicate field with same label as incident assignment group

2.set the dictionary attribute as tree_picker=false(if original field value is true).

3.put a READ ACL on these fields based on role which one should be visible

Regards,

Munender

How would I provide the user with the option to use the tree option or the list option?

Hi,

There is one way You can create a checkbox with label 'Assign group with Tree-picker' and then set a on-change client script if checkbox == true ,then display the one with tree_picker as true else the other field with tree_picker as false.

 

Regards,

Munender