Add the randomly generated ID as a data attribute to the root element of the newly added field