Dynamic dropdowns will only work with dropdown lists, where you are using checkboxes for the colors, this will not work
depending on how data is stored in the database, you could create a select list for the color, then return the sizes that are available in that color.