Variables and Variable Set

faraaz
Tera Contributor

Hi, 

I am creating a catalog where a variable set needs to appear after all the variables but it is not appearing even though the order of the variable set is higher than the independent variables, although the variable set is appearing at the top of the catalog form. Can anyone help?

2 ACCEPTED SOLUTIONS

Hi @faraaz 

  • Please check if there’s any Client Script or UI Policy that might be hiding the Variable Set or its variables based on certain conditions. These often run on form load and can unintentionally suppress visibility.
  • Additionally, verify if the Hidden checkbox is selected for any of the variables—this could prevent them from appearing on the form.

JuhiPoddar_0-1747280137021.png

  • You can also try adding this Variable Set to a fresh Catalog Item to see if the variables are visible. This will help determine whether the issue lies with the Variable Set itself or with the specific Catalog Item configuration.

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar

View solution in original post

Niamul Arifin
Tera Expert

Faced this issue multiple times back. What I got to know from various sources that its how the platform renders. Even if the VS order is higher than Independent variables, it doesn't work. VS is grouped UI elements.

 

To resolve this issue, try having the independent variables and Variable sets in separate containers (Start and end). You can get that from Variable tab in your catalog item and click the gear icon.

 

If this is helpful, please mark it complete

View solution in original post

9 REPLIES 9

Anand Kumar P
Giga Patron
Giga Patron

Hi @faraaz ,

 

To fix the variable order issue, set the Order on the variable set’s Related List in the catalog item, not in the variable set itself. This is especially helpful when the same variable set is used in multiple catalog items, as it lets you control the order for each item separately and gives you more layout flexibility.

 

If my response helped, please mark it as the accepted solution and give a thumbs up👍.
Thanks,
Anand

John Dahl
Tera Guru

I think @Anand Kumar P is on the right track, but may have a bit of confusing wording. There are two places where variable sets have an order field. One is on the variable set definition record on the item_option_new_set table. This sets the default order if you do not specify one on the Catalog Item where the variable set is displayed.

 

The second location is where you set the order for the specific Catalog Item. That is on the Catalog Item (sc_cat_item) record's Variable Sets related list... the related list is on the catalog item, not on the variable set. Make sure you set that related list entry's order to fit the set within the list of variables defined on the Variables related list. See the screenshot below:

JohnDahl_0-1747243190981.png

 

In this screenshot, you can see the variables defined. The variable set above is set to order 250, between the second and third variable.

JohnDahl_1-1747243297164.png

 

This creates the layout defined below:

JohnDahl_2-1747243325937.png

 

I hope this helps!

John

faraaz
Tera Contributor

Hi John, 

Thanks for helping, I am doing the same as you can see in the screenshots below, in the sc_cat_item catalog record related lists, these are my variables and variable set list:

faraaz_0-1747245670674.png

faraaz_1-1747245850909.png

 

Now, please see the screenshot of item_option_new_set record, as you can see below I have not set any order here(I tried earlier but no luck, instead the variable set was appearing at the top of the catalog form when I set the order 10 or anything else greater), and the variables in variable set is totally independent so I don't think their orders matter.

faraaz_2-1747246099723.png

Here, you can see my final result below(no variable set is showing in the portal)

faraaz_0-1747246507606.png

I hope you understand, John.

 

Thanks, 

Faraz

 

Hello @faraaz 

  • From the screenshot it can be seen that the variables in the variable set are not visible on form. Make sure all the variables are active true.
  • Additionally in 2nd screenshot order is set to 140 whereas same variable set in 3rd screenshot has order field empty.

Please make the required changes and refresh the form page to see the changes.

Hope this helps!

 

Thank You 

Juhi Poddar