How I can hide the suggestion icon in short description field

Saif Al-Bashiti
Mega Expert

Hello Expert 🙂

Please I need your help to hide the suggestion icon in short description field ?

short description field exist in task table , and my table extend the task table so I dont want to make any effect in the base table < Task > 

screenshot : 

find_real_file.png

7 REPLIES 7

Harsh Vardhan
Giga Patron

you can create here dictionary override on short_description field and pass the attribute knowledge_search=false

Harsh Vardhan
Giga Patron

Knowledge search is an attribute in the dictionary entry record for short_description

 

knowledge_search=true is the attribute

 

I would create a dictionary override entry rather than overwriting the task version,

 

suggestion is the choice type of the field, so you can set that to --None-- to remove the suggestion lightbulb completely.

 

 

 

Harsh Vardhan
Giga Patron

Sorry , ignore my first response. 

 

DOM manipulation can be used here to hide that.. but that is not good approach here. still you want to use refer the below code. 

 

function onLoad(){

 

      gel('lookup.incident.short_description').outerHTML='';

 

}

 

there is a one blog which is created by jim and that will also help you to fulfill this requirement. kindly have a look on that. 

 

"Suggestion" Tool

 

 

Hide/Remove suggestion (lightbulb) icon on form

In addition to harsh's point, 

New client-scripts are run in strict mode, with direct DOM access disabled.

Access to jQuery, prototype and the window object are likewise disabled. To disable this on a per-script basis, configure this form and add the "Isolate script" field.

To disable this feature for all new globally-scoped client-side scripts set the system property "glide.script.block.client.globals" to false..

Thanks,
Abhishek

Thank you,
Abhishek Gardade