Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..

cancel
Showing results for 
Search instead for 
Did you mean: 

Hide Add New code not working

Anonymous
Not applicable

I put a new custom code for hiding Add New button from a x-ref, and it's not working. Please guide:

 

<script type="text/javascript">Sys.Application.add_load(function() { $("#master_DefaultContent_rts_s6284_Lookup").hide(); //Hide Add New From CR});</script>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

4 REPLIES 4

DavidPetty
Archer Employee
Archer Employee

@Anonymous, use this custom object instead, Hiding the 'Add New' Link for Cross-Reference Fields - Archer Community - 632035 (archerirm.community)

 Advisory Consultant

Hi @DavidPetty 

I am not able to access the above link .

I am also having same custom code issue. Can you please share the code here. Currently I am using below code.

<script type="text/javascript">$(document).ready(function(){$('#master_DefaultContent_rts_s11199_Add_New.ml-command-item.add-new').
hide(); });</script>‍‍‍‍‍

@VeeraBande I updated the link to the correct location.

 Advisory Consultant

Thanks David. Its working now. Very useful