I have a Kintone Table with field code “machinelist”.
I want to find out which table row the user clicks.
Does Kintone Table have built-in function to find out which row is clicked? I tried “rowIndex” but does not work. Please help !!
var t = kintone.app.record.getFieldElement(“machinelist”);
if (t) {
if (window.addEventListener) {
t.addEventListener(“click”, function () {
window.prompt(“testing…” + t.rowIndex);
});
} else {
t.attachEvent(“onclick”, function () {
window.prompt(“testing” + t.rowIndex);
});
}
};