Updated dropdown to support AutoForm v4.
Fixed support for using attributes either from AutoForm or when directly using the template.