[Added] Subform: onSubformTitleClick()
Posted: Sat May 07, 2022 6:32 am
If the function exists (declared in the form's custom code), it will be run when the user clicks on a subform's column which will sort that column.
By returning false, sorting will not be be performed for all subforms on that form:
To disable sorting only for subform with Id mySubformId:
To disable sorting for a column with id customer on a subform with Id mySubformId
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')
}