Skip to main content
Nintex Community Menu Bar
Question

Disable Right click option on table column ?

  • July 10, 2024
  • 2 replies
  • 10 views

Forum|alt.badge.img+2

Hi 

I have a requirement to disable right click option from particular name column in table.
could you please any one help me to resolve this issue.

Thanks
Deleep

2 replies

Forum|alt.badge.img+7

Deleep,

Can you give a little more explanation on what you mean by “right click option”? Do you mean how you can right click on a name and redirect to its detail page?

Thanks!
Amy


Forum|alt.badge.img+10

Deleep,

Adding this snippet as an inline resource should do the trick. Just modify the table id and column name variables to fit your page.

var $ = skuid.$; (function(skuid){ $(document.body).one('pageload',function(){ disableRightClick(); }); })(skuid); function disableRightClick(){ var tableId = "sk-1H6KAU-172"; //substitute your table id here var columnName = 'Note Titles'; //substitute your column name here columnToDisableRightClick = $('#'+tableId).find('th').has("span:contains('"+columnName+"')"); $(columnToDisableRightClick).bind('contextmenu', function(e){ return false; }); //source: http://stackoverflow.com/a/10864321/4188138 }