Set value as attribute in addExistingData to get it in hooks