I have found only one way to copy previous row of a repeating table/section. Previous solutions I have found only work in the client. Currently I have a button with rules like this:
preceding-sibling::MyRepeatingGroup[count(preceding-sibling::MyRepeatingGroup) = count(current()/preceding-sibling::MyRepeatingGroup) - 1]/MyField
the problem is I have to add a row, then click the button. Is there a way to do this with one click? either by just adding a new row or when the button is clicked it does both (new row and copy)? I would like to stay away from code.