Script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2024 07:41 AM
Hi All,
There is a reference variable called subcategory(Reference) , on the backend there is a custom table for storing the subcategory. And there is another variable called bank , it is a dropdown field . Based on the bank variable value the subcategory should dynamically change. I tried to write a script include and call it by advanced reference qualifier , what is the way to get the dropdown selected value of bank variable and pass it to script include
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2024 07:52 AM
Hi @kali
Not 100% sure I understand your question, but if you are using a reference qualifier on a record producer variable, you can access other variables using 'current.variables.<variable_name>'. Your reference qualifier would be:
javascript: new MyScriptInclude.myFuntcion(current.variables.bank);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2024 08:44 AM
Hi @briannice ,
What is the code for getting the value of drop down variable selected , i tried above and checked in logs it is showing as undefined.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2024 09:17 AM
@kali Could you please share the name of the following.
1. Name of script include
2. The function you are calling in script include
3. Name of bank variable