Hi Team, we have location field in incident form and request item  form whenever location is updated

Aruna10
Tera Expert

Hi Team, we have location field in incident form and request item  form whenever location is updated then Region field also display and  update based on  location region for that How to create script please help.

2 ACCEPTED SOLUTIONS

Hi Rahul,

 

Thank you for your support,

 

I have below region list for example i have selected india in location field level then  Asia  need to display in region field level same way for all 3 region please tell me how to modify

Asia, America, Europe

View solution in original post

It will be working for all region!

Please mark my response correct/helpful as applicable!
Thanks and Regards,
Rahul

View solution in original post

11 REPLIES 11

Chetan Mahajan
Kilo Sage
Kilo Sage

Hello @Aruna10 ,

                               I assume you have Location field on both incident and RITM form. So instead creating region field and populate value using script, you can just extract that field from location table so whenever location gets update associated region gets updated.

Right click on form header -> configure -> form layout  and dot walked to Location.region as below

ChetanMahajan_0-1690187750018.png

Kindly mark correct and helpful if applicable 

 

Thank you for your support Chetan,

Aruna10_0-1690188225614.png

 

I have already created region ,location fields but now I want to write script for update region based on location region should be auto populate please help script How to write on change client script.

Samaksh Wani
Giga Sage
Giga Sage

Hello @Aruna10 

 

 

g_form.setDisplay('region', true);
var location = g_form.getValue('location');

if(location == 'India'){
g_form.setValue('region','pune');
}

 

 

 

You need to write this in OnChange Client Script.

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.

 

Regards,

Samaksh

 

I have below region list for example i have selected india in location field level then  Asia  need to display in region field level same way for all 3 region we need to write script please help. 

Asia, America, Europe