OnChange Client script on Condition type field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2018 07:41 AM
Hi All,
I have created a custom table. There is column called Condition whose type is condition.
Condition is as below:
[caller] [changes/is/.......] [value]
I want to create an OnChange client script whenever the condition changes.
I have created the OnChange client script on Condition field however that is not working.
When i change the field from Condition to any other field for ex - Task which is a true/false field, client script works but not does not work for Condition field.
Thanks,
Punit
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2018 04:59 AM
Hi All,
Is there a solution to this.
Thanks,
Punit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2018 05:07 AM
I was able to verify that onChange client scripts do NOT trigger when the condition fields change.
My question back to you is - Can we get some context around why you want to do this? What is the business requirement or use case that drove you to come up with this potential solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2018 05:21 AM
Hi Chuck,
I have create a table with condition type column which is dependent on a table so that it shows fields from that table.
Below are the fields of the table:
1. Table ID - call table (u_call)
2. condition (u_condition) - depends on call table.
3. Reference field to Support Offering (name - u_supporting_service).
We are using this table for matching the condition while raising the call. If the call is created and condition matches with the record in the custom table, create the incident automatically and set the Support Offering in the incident.
We want to maintain the records in the custom table.
Condition in our table is:
1. Caller is ABC
2. Caller is XYZ.
3. and so on
Our requirement is that, if in condition if caller changes, then on click of the reference field, show only those Support Offering which the user belongs to.
Thanks,
Punit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2018 06:08 AM
May be you don't need to have condition type field and only use Reference Qualifier for "Support Offering" field dependent on 1st two fields?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2018 06:41 AM
I agree. It sounds like your condition field, while a great idea, is over engineering this. You might be better off with the caller field as a separate reference filed and use a reference qualifier on the service offering field.