How to make the Reference fields dependent on catalog item form?

Scott29
Kilo Sage

I have 2 fields on a catalog item:

 

corporate_security_category

corporate_security_subcategory

 

The subcategory is dependent on category.

 

I am not able to get the dependent values to work. I am using an advanced reference qualifier with the following:

 

javascript: 'name=sc_cat_item^element=corporate_security_subcategory^dependent_value=' + current.variables.corporate_security_category;

Scott29_0-1745429905047.png

 

 

Example sys_choice record: 

 

Scott29_1-1745429946368.png

 

 

3 ACCEPTED SOLUTIONS

Robert H
Mega Sage

Hello @Scott29 ,

 

Please add the following in the "Variable attributes" field underneath the Reference qualifier:

ref_qual_elements=corporate_security_category

 

As per the documentation this is required to get updated values.

 

Regards,

Robert

View solution in original post

Chaitanya ILCR
Kilo Patron

Hi @Scott29 ,

is variable corporate_security_category is also a reference type?

if yes

change it's type to lookup select box and try 

ChaitanyaILCR_0-1745431676155.png

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

View solution in original post

Hello @Scott29 ,

 

Sorry, I did not notice that they are Reference variables. Please change them to Lookup Select Box variables, then it will work.

 

RobertH_0-1745432677737.png

 

For the Category variable you would need this reference qualifier, and no "Variable attributes":

name=sc_cat_item^element=corporate_security_category

 

Regards,

Robert

View solution in original post

4 REPLIES 4

Robert H
Mega Sage

Hello @Scott29 ,

 

Please add the following in the "Variable attributes" field underneath the Reference qualifier:

ref_qual_elements=corporate_security_category

 

As per the documentation this is required to get updated values.

 

Regards,

Robert

Thanks for the suggestion, but no luck, still no matches found on the subcategory field.

 

Scott29_0-1745431207902.png

 

Hello @Scott29 ,

 

Sorry, I did not notice that they are Reference variables. Please change them to Lookup Select Box variables, then it will work.

 

RobertH_0-1745432677737.png

 

For the Category variable you would need this reference qualifier, and no "Variable attributes":

name=sc_cat_item^element=corporate_security_category

 

Regards,

Robert

Chaitanya ILCR
Kilo Patron

Hi @Scott29 ,

is variable corporate_security_category is also a reference type?

if yes

change it's type to lookup select box and try 

ChaitanyaILCR_0-1745431676155.png

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya