Set the name when the elementList has a value