Default value and validation rules

When you select a Data Type from the Create Price Change Attribute page, Price Management displays a Default Value field that is specific to that attribute type. After the attribute is created, the Default Value is what is displayed in the user interface when the price attribute is used. You must configure the Default Value for the data type you select to successfully create the price change attribute.

Several data types allow you to apply additional properties called Validation Rules to the price change attribute. The rules you configure for the attribute restrict the values you can specify for the attribute in the user interface. For example, if you select a Data Type of Integer, you can add a rule so that the application accepts only positive numbers.

This table shows the Default Value you can select for each Data Type and any Validation Rules you can configure for the attribute.
Note: Only Decimal and Integer have additional Validation Rules that you can apply.
Data type Default value Validation rules
Boolean Select the default value to Yes or No/Checked or Unchecked. N/A
Decimal Specify the default value to a decimal number.
Positive
Setting this option means the application accepts only positive numbers in the user interface for this attribute. A negative number cannot be specified.
2 decimal places
Selecting this option means the application can accept a number with up to two decimal places.
In range
This option means the application accepts only numbers between the range of numbers you specify. An integer outside of this range cannot be specified.
Date Select a default date from the Choose Date list.
Present or Future
Selecting this option means the application accepts only the current date or a date in the future. A date in the past cannot be specified for this attribute in the user interface.
Year
This option provides different ways to restrict what years can and cannot be specified for this attribute in the user interface.
Date Time Select a default date and time from the Choose Date list.
Present or Future
Selecting this option means the application accepts only the current date or a date in the future. A date in the past cannot be specified for this attribute in the user interface.
Year
This option provides different ways to restrict what years can and cannot be specified for this attribute in the user interface.
Integer Specify the default value to a whole number.
Positive
Setting this option means the application accepts only positive numbers in the user interface for this attribute. A negative number cannot be specified.
In range
This option means the application accepts only numbers between the range of numbers you specify. An integer outside of this range cannot be specified.
Location Level Select the default location level for the attribute from the Select Option list. N/A
Price Type Set the default price change type for the attribute from the Select Option list. N/A
String Specify a string of text for the attribute. N/A
UOM Specify the default unit of measure for the attribute. N/A
User Specify a default user for the attribute. N/A

After creating a price change attribute, the attribute can be used in the user interface and applied to price changes. When you use a configured price change attribute during price change creation, Price Management displays the specified Default Value for that attribute field.