I was part of a project where a requirement came up to insert a selected string value to multiple inputfields. I found a very good post about inputting a single string value to a inputfield ( Use a macro to update InputField ) and in the comments there were talks about how to do this for multiple lines at once.
I was trying to find a ready-made example macro for this back then, but couldn't. So, here is a concept how I did it myself.
The main thing to remember is to have the id column for the inputfield values, starting from 0. The variable vSelectedInputIds creates a pipe concatenated string of the ids in the selection, ie. 2|3|4|5. UpdateValues macro reads this variable and chops it up one part at time and updates the inputfield value with the current id.