Record Producer script issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 10:51 AM
This script works great except it doesn't change the type

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 11:44 AM
A few things stand out.
Is the issue in the u_type field or u_type_of_request?
What type of field is u_type (assuming that's the one with the issue)? Are the values you are setting the Labels or the Values? You need to set the field to the internal value.
And where is this being run? You mention "producer" so I'm guessing it's running in the Record Producer script field. But none of my scripts like this are enclosed in a function(){}. I'm wondering if any of your fields are being set? Is it just the type one that is having the issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 12:36 PM
Thanks so much for chiming in.
I'm there's a Record producer where the user selects to either
Get a new license, give up a license, reinstate an existing license, or ask that a license.
When the user submits it, all of the fields in the incident are working correctly EXCEPT the type (current.u_type)
I've run all of the tests that I could think of but it fails every case and displays the default answer. but I can't see why it's failing the cases. If you see there's a variable called requestType that appears as expected when I ask it to appear in the description, but not in that case.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 01:15 PM
Can you show some screen shots of the u_type field and its choices so I can see how it's configured?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 07:07 PM
Sure! Appreciate the help!
Does this help?