In the custom properties tab, create a name for material or select it from the list. But this time rather than typing a value in, there is a pull down menu titled "link to value". In this pull down, select material and it will grab the material selected in the feature tree.