'The variant value is between min and max' type of restriction
Constraints using ranges
Last updated
Was this helpful?
Constraints using ranges
Last updated
Was this helpful?
The platform allows users to add constraints to a range using the "Numeral" option block. In other words, you can restrict the ability to show or hide options in the configurator, depending on the input number. For example, you can have 2 extra colors: red and yellow on a cabinet only between 100 cm and 200 cm wide.
Once you understand how to create these constraints using numerical variants, you can apply them in many situations.
Let's take the example below on a closet storage cabinet. I want to limit the color variants to a range in the numeric Width variant.
We have a basic 3D closet configurator with the following option blocks: Size and Material (Colors).
We want to allow color selection only between a minimum and maximum range found in the Size numeric block. Since this restriction will impact the Material option block, we click on it and apply the constraint to the color variant.
We take again the regular expression, except when it comes to selecting the type of restriction.
After selecting the constraint type, we select 'Size', i.e. the Numeral option set, and click on the "width" option to display the range.
In "Has value between" we set the minimum and maximum range in which we want to show the "colors". In this example, we set the minimum to 200 and leave the maximum at 280 and click 'Save'.
After clicking "Save", at this point, we have an "asterisk" displayed next to the chain icon, which means that this "colors" variant has an added restriction.
You must save the updated "Colors" options block before clicking "Preview" to see the effect.
Once you click on the "Preview" button, due to the added restriction, by default the colors will not be enabled (visible). Only if you change the width of the cabinet and go above 200 cm will the color option be enabled as shown below.
NOTE: Notice that no color/texture is applied to the front doors, the texture is only applied after the "Colors" option set is displayed. You can modify this by using 2 or more restrictions in combination, depending on the type of configurator you have.