cancel
Showing results for 
Search instead for 
Did you mean: 

Hide the Add New Button from Cross - Ref Using Custom Code

ManojBhainsora
Contributor III

Hi all, 

I am trying to use the below script to hide he add new button 

<script type="text/javascript">
Sys.Application.add_load(function() {
$('#master_DefaultContent_rts_ts3500_s4888_ss19772_Add_New').hide();
});
</script>

and i have inspected the correct Id for the add new button and even that is matching with cross-ref field Id,

i tried placing the code on layout and off layout in Edit mode, but didn't worked 

 

any suggestion to make this workable  .

 

 

pastedImage_1.png

1 ACCEPTED SOLUTION

Accepted Solutions

DavidPetty
Archer Employee
Archer Employee

Being the cross-reference is in a tab.  The custom object needs to placed outside of the tab set and should be configured for Edit Mode.

 Advisory Consultant - Archer, an RSA Business

View solution in original post

2 REPLIES 2

DavidPetty
Archer Employee
Archer Employee

Being the cross-reference is in a tab.  The custom object needs to placed outside of the tab set and should be configured for Edit Mode.

 Advisory Consultant - Archer, an RSA Business

Hi David, 

 

Thank you !! it worked actually..