Record Producer client script does not apply to target record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2017 07:01 AM
Hi,
I am on Jakarta patch 2 and now you can apply the catalog client script to the target record. But I am not able to get this to work. I created a catalog client script on the record producer and checked the box, but it's not working on the target record. It works just fine for the catalog item.
Has anyone been able to get this to work?
Thanks.
Phuong

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2018 06:35 PM
Hi Phuong
Did you ever resolve this?
I am on Jakarta Patch 3 and have the same issue.
I noticed in the release notes for Jakarta Patch 2 the following problem/fix, so I suspect that in fixing it one way they have broken it the other??
Service Catalog PRB1090985 | UI policies run on target records even when they are configured to not run on target records | Existing UI policies are applied on the target record of the record producer even though the 'Applies on the Target Record' option is disabled in UI policy definition |
Expected behavior: When the user enters "test", the single line text should be marked as read-only. Upon clicking Submit, the page should redirect to the incident form, and under the incident form variable editor, the field should not be marked as read-only. Actual behavior: Even though the "Applies on Target Record" option is disabled in the UI policy definition, the conditions are applied on the target record. |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2018 06:36 PM
that is talking about UI Policies, but maybe they have broken client scripts as well...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2018 07:13 PM
I've just resolved this issue for my scenario - I checked for errors on the form and found multiple errors (for all of the variables that were showing when they shouldn't) citing: cross-scope access denied
These threads were helpful, Scoped Application setDisplay on variable set fails due to cross-scope access denied? and setVisible works, but setDisplay doesn't
basically I recreated my client script in the global scope and inactivated the one that I had created in my scoped application scope, it's working now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2018 09:33 AM
Hi Bonnie,
Yes I believe I did the same and just created a global script. Thanks for the links!
Phuong