How to make a "pick a group" form

In official elgg site , there is "pick a group" form when we will add a discussion. how to make it ?

(i use 1.12)