adding ability to pass autocomplete to field templates