Change the Comments text in KB

ramesham
Tera Contributor

Hi,

 

I want to change the comment from "Post a comment" to different text as shown in the pic. Is that can be edited, if so how can be done. Please suggest.

1 ACCEPTED SOLUTION

Musab Rasheed
Tera Sage
Tera Sage

Hello,

If it is portal then there are two ways to do it.

1) This comes from 'Knowledge Article Comments' widget which is not editable so either you can clone and change the text and add to particular page by removing OOB widget or.

2) Create entry in 'sys_ui_message' table like below and it will work properly.

Screenshot 2024-01-09 130327.png

MusabRasheed_0-1704785769497.png

 

Please note second method is globally applied whereas first one is widget specific.

Please hit like and mark my response as correct if that helps
Regards,
Musab

View solution in original post

4 REPLIES 4

piyushsain
Tera Guru
Tera Guru

Hi @ramesham ,

You can create an OnLoad Client SCript and add the code 

 

comments = g_form.getControl("comments");
        if (comments) {
            comments.placeholder = "Shared with customer.";
        }

 

Remark: DOM manipulation is not supported and it will create a performance issue. Also, you need to put Isolate Script = False on the client script.

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain

Anand Kumar P
Giga Patron
Giga Patron

Hi @ramesham ,

var workNotes = g_form.getControl("work_notes");
if(workNotes) {
workNotes.placeholder = "New Placeholder for Work Notes";
}
var comments = g_form.getControl("comments");
if(comments) {
comments.placeholder = "New Placeholder for Additional Comments";
}

AnandKumarP_0-1704785261174.png


Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand

Musab Rasheed
Tera Sage
Tera Sage

Hello,

If it is portal then there are two ways to do it.

1) This comes from 'Knowledge Article Comments' widget which is not editable so either you can clone and change the text and add to particular page by removing OOB widget or.

2) Create entry in 'sys_ui_message' table like below and it will work properly.

Screenshot 2024-01-09 130327.png

MusabRasheed_0-1704785769497.png

 

Please note second method is globally applied whereas first one is widget specific.

Please hit like and mark my response as correct if that helps
Regards,
Musab

Hello @Musab Rasheed ,
I have tried 2nd option but this not working for me.

Regards,
Atanu Maity