Skip to main content

How to configure field behaviour with Smart Fields

Configure Smart Fields in Sage Sales Management Admin to change a field’s visibility, mandatory status, editing permissions, and default value based on another field.

Written by Jon Trasobares

Smart Fields let you define how a field behaves depending on the option selected in another field.

For example, you can make Estimated monthly purchase volume mandatory when users select ‘Contractor’ in Customer type.

This feature extends dynamic visibility through Value-specific configuration.

To understand the difference between displaying a field and restricting a list’s options, see How to configure dynamic and dependent fields.


Before you start

You need access to Sage Sales Management Admin and the Fields section.

Identify these elements before configuring the rule:

Element

What to identify

Example

Source field

The single-select or multi-select list that controls the change.

Customer type.

Source value

The option that activates a specific configuration.

Contractor.

Target field

The field whose behaviour you want to change.

Estimated monthly purchase volume.

Expected behaviour

The properties that should change.

The field must be mandatory.

Check that the fields and options you need already exist.

Configure the rule from the target field. Also review its general configuration: this applies when the selected value has no specific configuration.


Access the configuration

  1. Sign in to Sage Sales Management Admin.

  2. Open Fields and select the relevant entity.

  3. Find the target field.

  4. Hover over its row and select the pencil icon.

  5. Expand Dynamic visibility configuration.

Some properties may display a padlock. Configure only the options available for that field.


Enable value-specific configuration

  1. Under Field controlling visibility, select the source field.

  2. Enable Value-specific configuration.

  3. In the Values section, find the option you want to configure.

  4. Open the settings for that value.

Although the setting is called Field controlling visibility, it also selects the source field for the other Smart Fields properties.


Define the behaviour for each value

You can configure these target field properties:

Property

What it determines

Read-only

Whether users can view the field without editing it.

Mandatory

Whether users must complete the field to save the record.

Visible / Not visible

Whether the form displays the field.

Default value

The value initially displayed in the field.

Repeat the configuration for the options you need, then select Save.


Supported default values

The format depends on the target field’s data type:

Field type

Default value

Text

Free text.

Integer

A whole number.

Decimal or currency

A whole or decimal number.

Boolean

True or false.

Value list

An option from the associated list.

Date and time

A date and, where applicable, a time.

Address

Does not support a default value.

Example: make a field mandatory for contractors

A company wants its users to record the estimated monthly purchase volume for contractors.

The Estimated monthly purchase volume field already appears on the form, allows editing, and is optional.

To make it mandatory only for contractors:

  1. Edit Estimated monthly purchase volume.

  2. Select Customer type as the source field.

  3. Enable Value-specific configuration and open the settings for Contractor.

  4. Set the field to visible, editable, and mandatory.

  5. Select Save.

When users select ‘Contractor’, they must complete the volume field to save the record.

Values without a specific configuration keep the field optional, following its general configuration.


How the rules apply

Values without a specific configuration

When the selected value has no specific configuration, Sage Sales Management applies the field’s general configuration.


Source fields with multiple selections

Each value can have a different configuration.

  • If the selected configurations are compatible, Sage Sales Management applies them.

  • If the configurations conflict, Sage Sales Management applies the field’s general configuration.


Relationships between several fields

One source field can control several target fields. However, each target field can depend on only one source field.

You can also link relationships in a sequence. A target field can become another field’s source if it is a single-select or multi-select list.

For example, Account type can control Vehicle type. Vehicle type can then control the insurance information fields.

Special case: orders and order lines

An order field can control the behaviour of fields in its order lines. The relationship works from the order to its lines.

For example, when the order status is ‘Paid’, you can set certain order line fields to Read-only.

If you set an order line field to Not visible, the result depends on the app:

  • On the web, the order lines table keeps the field visible but prevents users from editing it.

  • In the mobile app, the field is hidden when the condition is met.


Check the configuration

After saving:

  1. Open a form for the relevant entity.

  2. Select a source value with a specific configuration.

  3. Check the properties you configured.

  4. Test a value without a specific configuration to check the general configuration.

  5. Change the selection after completing the target field and check what happens to its information.

  6. If the source supports multiple selections, test compatible and conflicting combinations.

  7. If you have linked several relationships, check all the fields involved.

Run these checks in creation and editing forms, and on the web and mobile, where applicable.

Did this answer your question?