Allow a custom HTML element to be selected for a grouping field