Dependent variable in record producer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2020 04:53 AM
Hi,
I want to make Subcategory dependent on category variable in record producer.I use following javascript code in reference qualifier and use Choice table . Its not working. Kindly let me know another approach for it.
javascript:'name=sn_si_incident^element=subcategory^dependent_value='+current.variable.category

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2020 04:56 AM
Hi Pinky,
Please refer to Ratul's response to similar question here https://community.servicenow.com/community?id=community_question&sys_id=a1a1ce96dbacb304a39a0b55ca96...
-Pradeep Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2020 10:48 PM
Hi Pradeep,
Thank you for your help!
I tried each method mention in that link , but it is not working as I'm not allowed to change system property and GlideRecord is not working in client script of new releases of service Now. Kindly let me know another approach for it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2020 11:07 PM
Hi,
try below javascript
javascript:'name=sn_si_incident^element=subcategory^dependent_value='+current.variables.category
Hope this helps!
Please mark the reply as Helpful/Correct, if applicable.
Regards,
Hemant

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2020 11:20 PM
Hi Pinky,
To make variable dependent on record producer form use below steps:
1. Select variable type as lookup select box.
2. configure other details like question, name, map to field etc.
3. Under tab "Type specification" configure below fields:
Lookup from Table - sys_choice
Lookup value field - Value
Lookup label field - label
Ref qual. -
javascript:'name=sn_si_incident^element=subcategory^dependent_value='+current.variables.category
4. Under tab "Defualt value"configure below fields:
variable attribute- ref_qual_elements=category
-
Harish