trims comma from fieldName in getTemplate templateID