Edit placeholder in incident watch list email box

ritaaudi
Tera Contributor

Hi: I am looking to add a placeholder on this field:

ritaaudi_0-1723572524001.png

I found this client script but it applies to the lookup box not the email box. 

Any idea how to do that?

Thank you! Rita

1 ACCEPTED SOLUTION

Satishkumar B
Giga Sage
Giga Sage

@ritaaudi Can you write a onLoad Client script with the below code. it is working for me.

 

 

function onLoad() {
    var userEl = g_form.getElement("sys_display.incident.watch_list");
    if (userEl) {
        userEl.placeholder = 'Enter User test';
    }
    var emailEl = g_form.getElement("text.value.incident.watch_list");
    if (emailEl) {
        emailEl.placeholder = 'Enter Address test';
    }
}

 

 

SatishkumarB_0-1723575415810.png

 

…………………………………………........................................................................................
Please Mark it helpful 👍and Accept Solution !! If this helps you to understand.

…………………………………………........................................................................................

View solution in original post

1 REPLY 1

Satishkumar B
Giga Sage
Giga Sage

@ritaaudi Can you write a onLoad Client script with the below code. it is working for me.

 

 

function onLoad() {
    var userEl = g_form.getElement("sys_display.incident.watch_list");
    if (userEl) {
        userEl.placeholder = 'Enter User test';
    }
    var emailEl = g_form.getElement("text.value.incident.watch_list");
    if (emailEl) {
        emailEl.placeholder = 'Enter Address test';
    }
}

 

 

SatishkumarB_0-1723575415810.png

 

…………………………………………........................................................................................
Please Mark it helpful 👍and Accept Solution !! If this helps you to understand.

…………………………………………........................................................................................