User Reference field to List members from multiple groups

Ken65
Mega Expert

We have a user reference field and need to be able to list the members from a select list of user groups. Is there a preferred method for doing this? We don;t need to know the group the user was selected from and the user may appear in more than one group. Any help is greatly appreciated.

Thanks

Ken

8 REPLIES 8

Hi Adrian,

How do you do this exactly??

 

Thanks,

Brandon

 

Ken65
Mega Expert

Hi Adrian,I am looking at something like the following (based on your solution):

I have not created an include before and wouldn't mind if you made any suggestions. It is greatly appreciated

 

Thanks

 

find_real_file.png

 

Hi, 

You should call the script include like this in ref_qualifier:

javascript: new GroupMembersUtils().GroupMembersUtils(current.group);

Apart from that, I'm remarking this just in case, if you use 'group name 1, group name 2' as an argument be careful with the value that you are using into the function, cause if the argument it's between this " ' ", its a string and result won't as expected.

If it was helpful, please give me positive feedback.

Thanks,

If it was helpful, please give positive feedback! ✔
☆ Community Rising Star 22, 23 & 24 ☆

Brandon R1
Tera Contributor

Ken,

I'm needing to do something similar. Did you get this to work the way you need?

 

Thanks,

Brandon