- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2021 10:24 AM
I have been working on several on-change client scripts to make this work, but have so far been unsuccessful. The task to make two fields that share the same table populate with their respective values, based-on the value of another field from the same table.
Below, is my script include.
How do I go about writing an on-change CS to make this work?
Thank you!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2021 03:41 PM
This is what I have defined in my PDI:
HHave added the fields to the Change Request form:
After flushing the cache, when I change System, Analyst and Owner automatically update.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2021 10:35 AM
Hi,
Do you want to populate owner and analyst based onChange of the system or vice versa?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2021 12:04 PM
Correct, based onChange of system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2021 12:10 PM
Please use the script suggested by Prasad Pagar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2021 10:41 AM
In our instance, I filter a reference field based on another reference field by doing that following:
You could use an advanced Reference Qualifier on the reference field. Here is our example:
"SOW Number" - Current reference field I am updating the Reference Qual on
"current.variables.customer" - form field reference to custom table
"u_client" - reference field on my custom table
Below is my Advanced Reference Qualifier on the "SOW Number" field.
javascript:'u_client='+current.variables.customer+'^u_active=true';
So basically this filters the "SOW Number" reference field by the "Customer" field which is also a reference field. It only shows SOW numbers associated with the customer chosen that are active.
Please mark this response as correct and/or helpful if it assisted you with your question.
Steven