format field name attr value based on save mode, test save works for all 3 save modes