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

Jim Coyne
Kilo Patron

Did you find a solution to your issue?  If yes, please remember to tag the correct answer and any that were helpful.

anujdev
Giga Guru

1. Create UI Macro -  "u_hide_suggestions_icon"

    <script>    
        var iconNode = document.getElementById('lookup.<table_name>.short_description');
         window.addEventListener('load', function () {
                 document.getElementById("lookup.dmn_demand.short_description").style.display="none";
        })
    
    </script>

 

2. add a Override the dictionary of the "opened by " [ any task table field which does not has any attribute ovverriden ], add the attribute " field_decorations=u_hide_suggestions_icon ".

4bode
Kilo Contributor

Hi, 

Can you explain how this works? what's the point of declaring the variable if it's not used and why it has to be called from another field?