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

Atik
Tera Contributor

Hi All,

I am working on the catalog item where I have three fields Country, Company and Office Street(type - Reference fields on catalog item form) which I am referencing from the 'core company' table.

Table Form:

Atik_0-1700726422454.png

 

 

Catalog Form:

Atik_1-1700726422457.png

 

Here You can see on upper form I wanted populate the fields like company field dependent on Country field and Office Site field dependent on Company field 

On Table form there is option like dependent field but on catalog form how to achieve this..

Please anybody can help me with this??

 

Thanks,

Atik Bagwan

1 ACCEPTED SOLUTION

Tai Vu
Kilo Patron
Kilo Patron

Hi @Atik 

You can set the reference qualifier of the Company variable, making it dependent on the Country variable.

I'm assuming that your Country variable is referencing to the Country [core_country] table.

The reference qualifier could be like below.

TaiVu_0-1700727780532.png

javascript: "country=" + current.variables.country.getDisplayValue();

TaiVu_1-1700727934367.png

 

You can do the same to the Office Site variable.

 

Cheers,

Tai Vu

 

View solution in original post

4 REPLIES 4

Tai Vu
Kilo Patron
Kilo Patron

Hi @Atik 

You can set the reference qualifier of the Company variable, making it dependent on the Country variable.

I'm assuming that your Country variable is referencing to the Country [core_country] table.

The reference qualifier could be like below.

TaiVu_0-1700727780532.png

javascript: "country=" + current.variables.country.getDisplayValue();

TaiVu_1-1700727934367.png

 

You can do the same to the Office Site variable.

 

Cheers,

Tai Vu

 

Atik
Tera Contributor

Hi @Tai Vu ,

thanks for the help it is working can you help me with the office site also I am struggling with this from last week.

Actually now based on the company i have to show the office site

Thanks,

Atik Bagwan

Hi @Atik 

Can you help to share the table that the Office Site is referencing, and how it is currently associated with the Company (via which field)?

 

Cheers,

Tai Vu

 

 

Atik
Tera Contributor

Hi @Tai Vu ,

For Office Site also I am referring the 'core_company' table only and i wanted to show the street field value in Office Site Variable

 

Thanks,

Atik Bagwan