Am not sure if I understand this fully but, you should be able to condition the icon and the group to your specification based on the icon selected by the user…
maybe you should attach some screenshot, that will foster the understanding