Project ID should auto populate based on department selected

Vikram M
Mega Expert

In Incident table Based on the departement i need to auto populate the field value Project ID need to be auto populated like

departerment       Project id

     IT                        1052

support                   6578

Sales.                       9874

Marketting             2568

Finance                  8536

 

How to achieve this in ServiceNow developer instance... Please suggest

3 ACCEPTED SOLUTIONS

Please let me know once check from your end  and Please  mark as correct.

 

 

Regards,

Sandeep Kumar M

View solution in original post

Even after writing the script when i select it, project id is not auto populating can you please see the screen shot.

VikramM_0-1690312084217.pngVikramM_1-1690312115778.pngVikramM_2-1690312146741.png

 

View solution in original post

  1. Hi Vikram,

Please  check the condition for setting the value in script it should be g_form.set value as you have mentioned get value() please change and try it 

 

Regards,

Sandeep Kumar M

View solution in original post

9 REPLIES 9

sandeep76
Tera Guru

Hi Vikram,

 

Please create on change client script and client callable script include.

 

Regards,

Sandeep Kumar M

Please mark as correct answer if this worked for you.

Can you please help me the steps how to add... I am newly learning servicenow

Hi Vikram,

 

Please follow the script as per the image as I have added only one field and you can add remaining ones.

sandeep76_0-1690309892839.png

Regards,

Sandeep Kumar M

Please mark as correct answer if this worked for you.

 

 

Thanks for the script, I will check and let you know if it's working...