Thanks.
I am using the workaround for now:
www.limesurvey.org/manual/Workarounds:_M...ble_Text.29_question
It's all fine but I modified it to make it a bit better when removing rows so that subsequent questions which use the row content instantly update (remove reference to content) as soon as the row is removed. It works because I filter the subquestions of subsequent questions like this:
!is_empty(G14Q00002_AO00_SQ01) (enumerated per row)
Posting mod here in case someone finds it useful.
Update the removeRow function by adding in the line
$( arrayRow + '[name="visible"]:last input[type="text"]' ).trigger("change")
Full function below.
// Function to remove a row, also clears the contents of the removed row,
// shows the Add element if the last row is hidden and hides the Remove
// element if only the first row is shown
function removeRow(qID) {
var arrayRow = '#question' + qID + ' table.ls-answers tr.subquestion-list';
var rowCount = $( arrayRow ).size() - 1;
$( arrayRow + '[name="visible"]:last input[type="text"]' ).val('');
$( arrayRow + '[name="visible"]:last input[type="text"]' ).trigger("change")
$( arrayRow + '[name="visible"]:last' ).attr('name', 'hidden').hide();
$( 'div#addButton'+qID ).show();
if ( $( arrayRow + ':eq(1)' ).attr('name') == 'hidden' ) {
$( 'div#removeButton'+qID ).hide();
}
}
Ben