Renaming fields dinamically

You would replace the contents of the .each loop with something like this.

1 Like