Enhanced dynamic fieldsto receive an object and add the name to the template.