I've used a "dropdown" attribute type to successfully populate the size attribute and POST products using a combination of attribute id and the respective numeric value, such as 140 for "S", 141 for "M" and so on. However I'd like the solution to be a bit more flexible and then tried to replace the dropdown with a "text field" type where you can pass a string value, that means "S" and "M" literally without numerical identifiers in the hope that Magento will build a list out of all the options that exist in a certain category. That does work for a filter on the left side, but in the product page where the size dropdown is all I see is a list of options titled "null", even though the number of options is correct (I pass three sizes and I see three entries in the list, but all have the text "null" in them). In the html code, however, I do see the correct text, namely "S", "M" and "L". Where should I look to fix the dropdown values without switching to a "dropdown" attribute type?

