Additional Comments Placeholder

Gangavva
Tera Contributor

When user adds any additional comments notification is triggering. I need to give as a warning message that "comments posted here will trigger notification" this message needs to be placed in Additional Comments placeholder. how can we achieve this other DOM manipulation.

7 REPLIES 7

@Gangavva 

please share the script you are using and how it behaves?

share screenshots

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar 

 

Gangavva_0-1757400217002.png

This is the script I have given in Onload client script and its only working if the record is new. After saving the record again the placeholder is with Additional comments(Customer Visible)

 

 

This is new record 

Gangavva_1-1757400530262.png

 

 

After Saving the record or updating the placeholder value is

Gangavva_2-1757400591385.png

 

 

@Gangavva 

then some other script etc is changing that again on existing record.

Did you check that?

you can make your existing client script wait for 2-3 seconds using timeout and set the placeholder again

function onLoad() {
    setTimeout(function() {

        // your script here

    }, 3000);
}

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader