- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 12:19 PM
I have a catalog client script so for the question 'What is the nature of your request?' is 'Temporary Alternate Approver' then the question 'Please indicate where the approver needs to be updated' auto populates to 'All Departments' and becomes read only. This is the onChange catalog client script i have: (Which works fine)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 12:39 PM
Hi @Jen11
The issue here is because of 2 client scripts that work on same field.
What happens here is,
The else loop in first client script holds true for the if loop in the second client script.
Lets take your 1st script
if (newValue == "Temporary Alternate Approver")
The opposite of this is (newValue ! = "Temporary Alternate Approver"). Now check the else loop of 1st client script which depicts that newValue can be "Add Approver to Workflow" as well.
That is why you should combine both the scripts and make 1 client script with if and else ladder structure.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 12:25 PM
Hi Jen,
Are you sure if Specific Department(s) is the dictionary value as well for the u_approver_needs_updated selectbox field? If not, please get it updated accordingly for script to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 12:30 PM
@Jaspal Singh - yes i have triple checked and that is the value

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 12:33 PM
Can you try adding alerts in the client scripts for a check. This will help understand where it fails in particular.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 12:34 PM
Make sure "Add Approver to Workflow" exactly matches the choice value, as well. You can add alert lines to your script to troubleshoot the values, which if statements are met,...