retrieves field names in getTemplate