Script Issue

nameisnani
Mega Sage

Hi Team ,

 

We need help in the script . 

 

nameisnani_0-1696482250214.png

 

Contact has to show like contact's 

 

nameisnani_1-1696482314851.png

 

This is my script 

function onLoad() {
    //Type appropriate comment here, and begin script below
    g_form.setValue('description_1', 'Please include the primary contacts email address or other contact details here, and include funding allocation if known.');

}

 

How to update . Please let me know .

 

If i update like this means , showing error 

nameisnani_2-1696482404080.png

 

 

Thanks in advance 

1 ACCEPTED SOLUTION

Vishal Birajdar
Giga Sage

Hi @nameisnani 

 

Put it in double quotes like below 

function onLoad() {
    //Type appropriate comment here, and begin script below
    g_form.setValue('description_1', "Please include the primary contact's email address or other contact details here, and include funding allocation if known.");

}

 

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

View solution in original post

1 REPLY 1

Vishal Birajdar
Giga Sage

Hi @nameisnani 

 

Put it in double quotes like below 

function onLoad() {
    //Type appropriate comment here, and begin script below
    g_form.setValue('description_1', "Please include the primary contact's email address or other contact details here, and include funding allocation if known.");

}

 

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates