Get custom data attributes of row item for edited row

Get custom data attributes of row item for edited row

Karl_SKarl_S Posts: 20Questions: 6Answers: 0

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

Replies

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    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

  • Karl_SKarl_S Posts: 20Questions: 6Answers: 0

    Thank you, Colin. This woks well.

    Karl

This discussion has been closed.