Required attributes based on other attributes

In projects, you can require an attribute that is based on another single-select drop-down attribute. For example, you can configure a form to require the postal code attribute if the user selects "United States" from the drop-down for the Country attribute.

Attributes that are always required are marked with a double red asterisk (**). Attributes that are required because of a rule are not marked. Instead, the user is prompted to enter a value for the required attribute if the user tries to save without entering a value. For example, if a user selects "United States" for the country, the user receives an error if the user tries to save the form without entering a postal code.

Note: This feature is supported for projects only.

Editing rules behavior

After you create rules to require attributes that are based on other attributes, the following criteria for editing rules apply.

  • You receive a warning if you try to delete a value from a single-select attribute and a rule is defined on that value. You can delete the value only after you delete the associated rules.
  • If you delete any value from a single-select database attribute, Marketing Operations checks to see whether rules are defined on that value. If a rule is defined on the value and you delete the value, the rule is flagged as invalid. You can then modify the rule.
  • If you try to delete an attribute that is used for defining a rule, you receive a warning. If you delete the attribute anyway, the attribute is removed from the rules.
  • If you try to make an attribute behavior read-only, and that attribute is used in a rule, you receive a warning. To make the attribute read-only, you must remove it from the defined rule.
  • If you try to change the look-up table, key column or display column of a single-select database attribute that is used in a rule, you receive a warning. You must remove the attribute from any existing rules before you change the look-up details.
  • When you edit a form with existing rules, the form is not automatically republished. To apply a changed rule, republish the form.

Importing and Exporting behavior

After you create rules to require attributes that are based on other attributes, the following criteria for importing and exporting forms with rules apply.

  • If you export a form with attribute rules, the rules are also exported. Such forms can be imported to another Marketing Operations system along with the attribute rules.
  • If the form you import contains corrupted or broken rules, then you receive a warning, so you can fix the rules.