How to remove "how can we help" in the Typeahead Search plugin ?

pinonbr
Kilo Contributor

Hello,

Do you know how to remove "how can we help?" text in the Typeahead Search plugin available in the Service Portal ?

find_real_file.png

Thanks for your help

1 ACCEPTED SOLUTION

Abhishek Raj3
Tera Guru

Hi Bruno,



press ctrl shift and click right you will get an option like


find_real_file.png



click on instance in page editor



you will get


find_real_file.png


now click on homepage search and modify the










1


var typeAheadSearchOpts = {title: gs.getMessage('How can we help?'), size: 'lg', color: 'default'};


2


data.typeAheadSearch = $sp.getWidget('typeahead-search', typeAheadSearchOpts);


Thanks regards,
Abhishek


Please mark helpul or like if provided solutions help you



View solution in original post

2 REPLIES 2

Abhishek Raj3
Tera Guru

Hi Bruno,



press ctrl shift and click right you will get an option like


find_real_file.png



click on instance in page editor



you will get


find_real_file.png


now click on homepage search and modify the










1


var typeAheadSearchOpts = {title: gs.getMessage('How can we help?'), size: 'lg', color: 'default'};


2


data.typeAheadSearch = $sp.getWidget('typeahead-search', typeAheadSearchOpts);


Thanks regards,
Abhishek


Please mark helpul or like if provided solutions help you



denis hoffmann
Kilo Guru

Hi,

Good news :

you can  now translate, change, or erase the "How can we help?" placeholder text, in search input field without cloning widget :

 According to https://docs.servicenow.com/bundle/kingston-servicenow-platform/page/build/service-portal/concept/c_... ,
instead of typing directly in "Additional options, JSON format" of the widget Instance, or cloning OOTB Widget to change 'Option schema',

you can directly set your Additional option by editing it in 'Service Portal Designer' , and add ${ } quotes for translation :

    - Go to 'Service Portal Designer',

    - edit 'Index' page,  ( or custom page)

    - click on Edit (Pen icon) for the "Homepage Search" Widget

    - in 'Typeahead Search' field, cut & paste default value : 
               {title: 'How can we  help?', size: 'lg', color: 'default'}
    - then change it to :
               {title: '${How can we  help?}', size: 'lg', color: 'default'}

it'll create a clean 'Additional options, JSON format" in your widget Instance.
more details here : https://community.servicenow.com/community?id=community_question&sys_id=212d09ebdb905f8c0e58fb651f96...

Regards,
Denis.