Add link field show only parent item group

how to add field link to item group but only show parent item group and when selected filter second filed for groups that belongs to it