Action link Event Listener

Hello, I am trying to change some css when an action link is successfully executed.

I can’t seem to find where I can ‘listen’ to this event since the normal record events do not seem to capture this.

I am using an action link to insert a connected record.

Hello JBS,

Try the below code it works for me.

var RwId="";

$("#view_30 .kn-action-link").live(“click”,function(){
RwId=$(this).closest(“tr”).attr(“id”);

});

$(document).on(‘knack-view-render.view_30’, function (event, view, records) {
$("#"+RwId).find(".kn-action-link").css(“color”,“red”);
});

Change view_id as per your view

Regards,
Sunny Singla
ssingla1985@gmail.com
+919855089359

3 Likes

Perfect, thanks so much!

1 Like