I have created a Scriptinclude and onChange client script but it is not working

kranthi2
Tera Expert

Hi,

I have created a Scriptinclude and onChange client script but it is not working, i suppose to set the user's location.

but it is not happening.

onChange Client script:

kranthi2_0-1748580072890.png

 

Scriptinclude:

 

kranthi2_1-1748580118123.png

 

User form:

kranthi2_2-1748580251145.png

If i select user from the reference then location is not auto populating.

 

kranthi2_3-1748580309723.png

Thanks,

 

 

 

 

 

1 ACCEPTED SOLUTION

YaswanthKurre
Giga Guru

Hi Kranthi,

Please make sure to include the function name you're calling from the Script Include in your Client Script.
You can add the following line after line 7:

 

<< - add this--> ga.addParam('sysparm_name', 'populateLocation');

 

Give it a try and let me know how it goes.

View solution in original post

10 REPLIES 10

Hello @kranthi2 ,

 

Ok, understood now that this is just for learning.

@YaswanthKurre already gave you the solution some time ago.

 

Regards,

Robert