hide/remove the suggestion icon on the short_description field

patricklatella
Mega Sage

Hi all,

I've seen several threads regarding this but none that pertain exactly to what I need.   So here's my contribution:

I have a short_description field on a custom table extended from task.   I want to hide or remove the suggestion icon to the right of the field.   What's the best way to do this?   In my screen shot the variable is called Summary, I did that through a dictionary override.   I've been trying to do a dictionary override of the attributes but can't find the right script to do it.

suggestion=false   (?)   something like that?     thanks!

find_real_file.png

1 ACCEPTED SOLUTION

rahulraj06
Tera Expert

Found a solution to this,

https://community.servicenow.com/community?id=community_question&sys_id=b37200d6db80a3408e7c2926ca961984

View solution in original post

17 REPLIES 17

sachin_namjoshi
Kilo Patron
Kilo Patron

Hi



You can create onload client script and use below code.



function onLoad(){


      gel('lookup.incident.short_description').outerHTML=''; // please modify according to your table field.


}




Regards,


Sachin


Michael Ritchie
ServiceNow Employee
ServiceNow Employee

Unfortunately as mentioned in this article, to setup a suggestion field you set the Choice value to "suggestion".   This is set on the task.short_description field that affects all tables that extend task.   You can remove it for all those tables but there isn't a dictionary override for the "choice" value.


patricklatella
Mega Sage

hi guys, thanks for the replies



Sachin I tried your code but it's not working, do I have this correct?



function onLoad() {


  //Type appropriate comment here, and begin script below


  gel('lookup.x_cur_oc_feedback_oc_feedback.short_description').outerHTML=''; // that's my custom table name.field


}


hi patrick,



Can you please provide screenshot of your client script?


Below client script is working for me.



find_real_file.png




Regards,


Sachin