Skip to main content

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

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


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 }

Reply