- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 04-30-2020 05:49 AM
This post is to show how you can create a dependency between two variables similar to the Subcategory and Category field dependencies on the Incident form. This often comes as a requirement to add to the Create Incident record producer.
1. Create the variable Category:
2. Create the variable Subcategory:
3. Add this in the Variable Attributes-
"ref_qual_elements=category" without quotes.
That is all. Now, you don't have to create onChange client scripts or custom tables to handle the dependencies on Variables. Don't forget to mark as helpful if it helped :).
- 8,225 Views
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
sorry it not working
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Could you please send the screenshots of your configurations?
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
put the ref_qual_elements=category inside the Reference qualifier section instead of Default value section
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Ankit,
This is fantastic, it worked perfectly for me and just the solution that I needed to configure for my client!
Thanks ever so much for sharing, greatly appreciated Ankit.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
It is working perfectly. I have an query that do we can made the subcategory field to select more than one item.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
@Ankit P thanks for providing your solution, it's working as it should. I can confirm this is working on a regular catalog item as well.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi
This solution saved me from writing a bulky client script and script include. Thank you very very much.
One quick note; I naively just added ref_qual_elements=category into the reference qualifier. However, after adding javascript:"element=subcategory^name=incident^dependent_value=" + current.variables.category this solution worked.
Mind what you are pasting 😀
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
javascript:"element=subcategory^name=incident^dependent_value=" + current.variables.category
Worked for me.