How do i hide the pencil icon on price field?

Wendy Peterson
Giga Guru

I have 4 fields that are price fields and 3 out of the 4 show a pencil but just opens up to a blank page. Any idea on how to get rid of this? TIA

2018-01-22_18-51-21.png

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi Wendy,



find_real_file.png



Code as below:


function onLoad() {



//document.getElementById("pm_project.cost.editLink").style.display="none";


document.getElementById("<<id>>").style.display="none"; //right click the pencil icon & do inspect look for id & paste it over here


}


View solution in original post

3 REPLIES 3

Jaspal Singh
Mega Patron
Mega Patron

Hi Wendy,



find_real_file.png



Code as below:


function onLoad() {



//document.getElementById("pm_project.cost.editLink").style.display="none";


document.getElementById("<<id>>").style.display="none"; //right click the pencil icon & do inspect look for id & paste it over here


}


That didn't seem to work. It's actually a price field I was thinking it was a currency field. Does that matter?


Thanks I get it now



function onLoad() {



//document.getElementById("pm_project.cost.editLink").style.display="none";


document.getElementById("sn_sm_legal_request.u_purchase_sale_price.editLink").style.display="none"; //right click the pencil icon & do inspect look for id & paste it over here


}