By returning false, sorting will not be be performed for all subforms on that form:
Code: Select all
function onSubformTitleClick() {
return false;
}
Code: Select all
function onSubformTitleClick(id, e) {
return id !== 'mySubformId';
}
To disable sorting for a column with id customer on a subform with Id mySubformId
Code: Select all
function onSubformTitleClick(id, e) {
return ! (id == 'mySubformId' && e.currentTarget.getAttribute('data-nu-field') == 'customer')
}