- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2025 02:52 AM
In catalog item, i have one fields one is Vendor which is referenced to core_company table and i have another field Contract number which is referenced from the ast_contract table. My requirement is when the user selects any company from the Vendor field , then the contract number should be filtered based on the company vendor which is selected by the user. In ast_contract table we have the vendor field, so that when the user selects the company name in vendor field then the contract number should be filtered based on the company which selected by the user. Give me the solution for this one.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2025 05:27 AM
In this case you don't need to call a Script Include, you can use a reference qualifier that looks like this:
where 'v_vendor' is the name of your Vendor variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2025 05:17 AM
Hi @venkatanathansp,
You can write a filter it in advance reference qualifier. Please find below sample.
javascript:'vendor='+current.variables.company.value
Your feedback not only supports me, but also helps others in the community who may have similar questions!
Regards,
Abdul Fathah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2025 05:20 AM - edited ‎01-05-2025 05:21 AM
you can use advanced ref qualifier on Contract number variable
something like this
// give the correct field name on ast_contract table
javascript:'vendor='+ current.variables.vendorVariable;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2025 07:06 PM
Thank you for marking my response as helpful.
As per new community feature you can mark multiple responses as correct.
If my response helped please mark it correct as well so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2025 05:27 AM
In this case you don't need to call a Script Include, you can use a reference qualifier that looks like this:
where 'v_vendor' is the name of your Vendor variable.