- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2020 11:55 AM
Hello,
We have a requirement where a filed needs to change based on another field.
If "Cost center" change then "EOC" should display the "list of codes" based on selected "Cost center"
I'm a novice at scripting. Any help would be greatly appreciated.
Thank you 🙂
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 09:10 AM
Thanks everyone. We ended up getting help from the vendor and they were able to do the needful. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2020 11:58 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2020 11:58 AM
Does EOC has any reference to cost center? if so you can add filter on EOC field something like cost_center=current.cost_center;
This is just an example so make sure fields exists.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2020 12:12 PM
Hi,
You can Write Onchange client script on Cost Center field.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if(newValue != oldValue)
{
//modify below as per your field name
g_form.setValue('EOC','','list of codes');//setValue(String fieldName, String value, String displayValue)}
}
Please Mark Correct/Helpful answer if it help you in any way.
Thanks,
Kunal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2020 12:46 PM