Add name attribute to shared fields