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

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

 

 

Regards,

Sandeep Kumar M

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

 

  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

Its Working Sorry Its my mistake thanks for your help.... Have a great Day

VikramM_0-1690312768773.png

 

Thanks Vikram

 

Regards,

Sandeep Kumar M