Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Script include

kali
Tera Contributor

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

3 REPLIES 3

briannice
Kilo Sage

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&colon; new MyScriptInclude.myFuntcion(current.variables.bank);

 

kali
Tera Contributor

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

@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