Use below macro for getting all Contact Groups -
{% GlobalObjects.ContactGroups #%}
Follow below steps on your page type -
- Create your desired field
- Select Form control: Drop-downlist from Field appearance section
- Select Data Source is Macros and Edit Data Source and place the above macro from Editing control settings section
Refer attached screenshot -
- Configuration - https://i2.paste.pics/I399G.png?trs=669cb31f0abd676c5f82f9562c67352769a82ddd940a62b440f5eebe0dcb782e
- Output - https://i2.paste.pics/I39A6.png?trs=669cb31f0abd676c5f82f9562c67352769a82ddd940a62b440f5eebe0dcb782e