The CreatorCon Call for Content is officially open! Get started here.

when i select group then only particular group members visible in left side box.

poornima srivas
Kilo Contributor

when i select group then only particular group members visible in list collector.i have achieve this but group members are visible in right side box(selected). but i want only particular group members  display in left side block.

find_real_file.pngfind_real_file.png

1 ACCEPTED SOLUTION

Hello poornima,

But the idea of the field is exactly the oposite.
The right box represent the "selected" users and the left the "users to select".

If you want to select a group and have all members selected, then you need to:

- Create a client script onChange of the group field
- In that client script, perform an ajax call to retrieve the members of the group (I think your script is doing this)
- set the field with the members with the value that is being returned from your ajax call.

This way you will set that field to be the set of members of the group. In that way you will see all members on the right side when selecting the group.

I'm not entirely sure about the output of your script: maybe it should only return a comma-separated list of user sys_ids. You need to try it out.

Let me know if this solution had any positive outcome.

Hope this helps!

Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!

Best Regards,

Filipe Cruz

 

View solution in original post

11 REPLIES 11

i want when i select group then only particular members(not all) are visible in list collector(right side)not in selected box(left side).find_real_file.png

it is my script includefind_real_file.png

Hi,

As I already explained before: what you see on the right side is the set of users that you already selected in that particular field.
The way it is, "Abel tuter" and "Abraham Licoln" are the values stores in your field.

If you want to see them in the left side, just use the arrows to move them or simply cleanup the content of your field.

I'm still confused with your requirement but I hope it is clear for you now!

Hope this helps!

Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!

Best Regards,

Filipe Cruz

my quaries is, when i select group then its group members visible in left side by default but i want when i select group then first its visible in right box and user can select and put in left box using arrow.

find_real_file.png

Hello poornima,

But the idea of the field is exactly the oposite.
The right box represent the "selected" users and the left the "users to select".

If you want to select a group and have all members selected, then you need to:

- Create a client script onChange of the group field
- In that client script, perform an ajax call to retrieve the members of the group (I think your script is doing this)
- set the field with the members with the value that is being returned from your ajax call.

This way you will set that field to be the set of members of the group. In that way you will see all members on the right side when selecting the group.

I'm not entirely sure about the output of your script: maybe it should only return a comma-separated list of user sys_ids. You need to try it out.

Let me know if this solution had any positive outcome.

Hope this helps!

Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!

Best Regards,

Filipe Cruz