You are here: Configuration > Rules > Hiding Rules

Hiding Rules


What are they?

Hiding attribute rules tell the system to hide select attributes when a pre-defined condition is satisfied. Like other rules, hidden attribute rules are made up of a condition and an action. The values of the attribute(s) selected as the condition attribute(s) determines the result of the condition, which when true triggers the hiding of the action attributes.

How do they work?

Using hidden attribute rules, you can reduce the number of flow rules needed for a configuration process. You can include different attribute types in a single flow rule and show one set of attributes in another, based on the same condition.

ClosedAJAX Hiding Rules

AJAX rules AJAX can be enabled for any constraint or hiding configuration rule. Unlike other rules, that are evaluated only if the attributes are set to auto update or if a user clicks the Update action, AJAX rules are evaluated and the action is performed instantly when a user changes any rule input. Input can be condition and action attributes or action inputs. AJAX rules are re-run when a user clicks the Update button.

AJAX hiding rules do not support hiding the tab when all attributes are hidden in it. Similarly, a tab that is hidden will not appear via AJAX if the user “unfires” the associated hiding rule. The user must perform an Update action to view/hide tabs. Also, if a required attribute is hidden through an AJAX rule, no validation error will be thrown on Update or invoke actions.

Best Practices and Tips


ClosedCreating a Hiding Rule

  1. ClosedNavigate to the Hiding Attribute: Rules List page.
    1. Click Admin to go to the Admin Home Page.
    2. Click Catalog Definition in the Products section.

      The Supported Products page appears.

    3. In the Navigation drop-down, choose Hiding Attributes and click List.

      The Hiding Attribute: Rules List page appears.

  2. Click Add.

    The Hiding Rule: New Rule page appears.

  3. Enter the Properties of the rule.
  4. Select the Condition Type.

  5. Choose to apply the rule to either Configuration, Selection or Both. Configuration is the default selection.
  6. Click Add Attributes to open the Action Attribute window.

  7. Choose the configurable attributes that should be hidden when the condition is met and click Add.

ClosedAdding an Associated Recommendation Rule

A hiding rule can have one associated recommendation rule.

When users are configuring a model, they could end up with an internal constraint error, which they cannot fix. An internal constraint error occurs when there are constraints on hidden attributes and the values of these hidden attributes cannot be modified. To avoid these situations, you can modify the values of hidden attributes through recommendations. In this case, if a constraint is fired, then the value of this attribute can be set by the recommendation to avoid an internal constraint error. 

You are unable to set the value into an action attribute because it could be a "None" set type and this will prevent the user from continuing on with the configuration. To avoid this, we provide attribute set types in recommendations so that the recommendation rule set type takes precedence over the attribute set type and modifies the value of the hidden attribute. Therefore the constraint action becomes invalid and hence the internal constraint error is no longer visible.

ClosedCreating an Associated Recommendation Rule

  1. Click Add Associated Recommendation Rule in the right panel of the Action section of a Hiding Rule.

    You must save the Hiding Rule before you can add an Associated Recommendation Rule.

  2. Enter the Properties of the rule.
  3. Select your Condition Type.
  4. Choose to apply the rule to either Configuration, Selection or both. Configuration is the default selection.
  5. Choose the Action type: 
  6. Choose an attribute whose value needs to be set. Under Values to Set


  7. Choose the Set Type
  8. Click Update and Back to save and return to the Hiding Attribute Rule, where you will now see a link to the associated rule.

ClosedEnable AJAX

  1. Select AJAX Enabled in the Properties section of the rule.
  2. Determine if you'd like to show or hide the Processing dialog box for AJAX rules.


    This is independent of the Processing dialog box for the Update action

  3. ClosedNavigate to the Configurable Attributes Administration List page.
    1. Click Admin to go to the Admin Home Page.

    2. Click Catalog Definition in the Products section.

      The Supported Products page appears.

    3. In the Navigation column, select Configurable Attribute and then click List.

      The Configurable Attributes Administration List page appears.

  4. Enter a value for Number of Milliseconds to Wait Before Showing the Loading Dialog for AJAX Rules:

    • A positive number: Sets how must time passes before the dialog appears (in milliseconds).
    • A negative number: Disables the processing dialog for AJAX rules.
    • Zero (0): The dialog box appears instantaneously.



Related Topics Link IconSee Also