How add custom fields to search form?

Hello, everyone!
I want add new field “Group contacts” in search form. I add array group_contacts in file “modules/Contacts/metadata/searchdefs.php” and set up layout for searchform. If element “name” of array have name group_contacts, I have empty field Group Contacts but if I set value of element “name” for example “assigned_user_id” then I have field with right values . Tell me please what should I do to get right values in the field? Thanks.

just to confirm

you have a new field "group contacts’

Go to Studio > Contacts > Layouts > Filters Quick/Advanced

Here you will see the list of fields you are using within the filters and you can add your custom field :slight_smile: