Get custom data attributes of row item for edited row
Get custom data attributes of row item for edited row

Is it possible to get the data attributes of a row which has been edited during the preSubmit event? I want to grab a data attribute set on the table row being edited during the preSubmit event and add it to the json data.
myEditor[assignmentsTableID].on('preSubmit', function (e, json, editType) {
// add an attribute to the json such as the data attribute called sheetName which was placed on the tables row during creation using Row.setAttribute('sheetName', 'Registrants');
}
Kindest Regards,
Karl S
This discussion has been closed.
Replies
Hi @Karl_S ,
You can call
modifier()
to get the row(s) being edited - which you can use to get the node and then the attributes,Cheers,
Colin
Thank you, Colin. This woks well.
Karl