Hi, this should do the trick: if (_Row1.count > 1) {
var nRows = _Row1.count,
cInput = xfa.host.response("How many of the current " + nRows + " do you want to remove?", "Remove rows", "1", false),
n = parseInt(cInput, 10) > nRows ? nRows - 1 : parseInt(cInput, 10),
i = 0;
while (n > 0) {
_Ro...