# Dynamic validation

Use **Dynamic validation** to choose a module and mark its listed fields as mandatory.

| If you need to… | Go to |
|---|---|
| Open the configuration area | [Configuration dashboard](https://pams-doc-test-fresh.atloria.app/p/pams-doc-test-fresh-N9B4TwWn3Q/user/configuration-home) |
| Open **Dynamic validation** | [Open **Dynamic validation**](#open-dynamic-validation) |
| Identify the available module and field surfaces | [Understand the screen](#understand-the-screen) |
| Change mandatory-field settings | [Set mandatory fields](#set-mandatory-fields) |
| Check which branch controls what you see | [Handle configuration branches](#handle-configuration-branches) |
| Match a loading or saving message to its operation | [When configuration goes wrong](#when-configuration-goes-wrong) |
| Review changes after saving | [After saving](#after-saving) |
| Configure approval and editing rules separately | [Work procedure settings](https://pams-doc-test-fresh.atloria.app/p/pams-doc-test-fresh-N9B4TwWn3Q/user/configuration-process-approvall) |
| Continue into sales-job work | Sales jobs lifecycle |
| Review general error messages | General error messages |

![The Dynamic validation screen with Choose Module and the save toolbar](https://atloriaassets.blob.core.windows.net/assets/a438221c-c1af-407c-b9e6-a56c986db846/53f0813dd5f51af191870548130d7d84.png)

## Before you start

Prepare the access and module information before changing a setting.

| Check or information | Why it matters |
|---|---|
| A subscription that includes Dynamic validation | The configuration form and toolbar are available only when the subscription includes the feature. |
| Administrator or other edit access | **Save** and **Save and Close** require edit permission. |
| The module and, where offered, its sub-module | The selected module determines the sub-module choices; the selected sub-module determines the field list. |
| The fields your company wants to make mandatory | Selecting a listed field row changes its mandatory value. |
| Any company information needed for audit review | **Last Modifications** appears when company information is available. |

An upgrade surface appears when your subscription does not include Dynamic validation.
The configuration form and toolbar appear when the subscription includes it. **Save** and
**Save and Close** appear only when you have edit access and the data has changed.

## Open Dynamic validation

Open the Configuration page to begin maintaining mandatory-field settings.

**Prerequisites**

- Your subscription includes the Dynamic validation feature.
- You are signed in with access to the Configuration area.

**Steps**

1. Open **Configuration**.
2. Open **Dynamic validation**.
3. Open **Choose Module**.

Opening **Choose Module** opens its options without changing the configuration.

![The open Choose Module list with its available module choices](https://atloriaassets.blob.core.windows.net/assets/a438221c-c1af-407c-b9e6-a56c986db846/7f1d7f369ac99361624792bca7143d2c.png)

**Result:** The Dynamic validation screen is open, **Choose Module** is available, and its
choices are open without a configuration change.

## Understand the screen

Use **Choose Module** to select a module. When sub-module choices are available, use
**Which Sub-Module** before reviewing the **Field** and mandatory columns. Use
**Last Modifications** to open the audit history when it appears.

| Surface | What you use it for | When it appears |
|---|---|---|
| **Choose Module** | Select the module whose fields you want to maintain. | On the configuration form. |
| **Which Sub-Module** | Select the sub-module before reviewing its field list. | When sub-module choices are available. |
| **Field** | Read the field name in the field grid. | When field properties are available. |
| Mandatory column | Read whether the field is mandatory; select the row to change that value. | With the field grid. |
| **Last Modifications** | Open the audit-log tab. | When company information is available. |

Opening **Choose Module** returns the options `Account`, `LG`, `Purchase`, and `Sales`.

**Which Sub-Module** appears when sub-module choices are available. The field grid uses the
string column **Field** and a mandatory column. The properties grid appears
when mandatory-field rows are available.

No required, pattern, range, or validation-group rules appear for these controls. Only
**Field** and the mandatory column appear in the field grid. Select a field row to change its
mandatory value. The page uses **Which Sub-Module** radio choices rather than an alternate
sub-module select, and the mandatory checkbox is not available.

## Set mandatory fields

Use the selected module and sub-module to maintain mandatory values:

**Prerequisites**

- The Dynamic validation form is open.
- Your subscription includes Dynamic validation.
- You have edit permission.

**Steps**

1. In **Choose Module**, select the module you want to configure.
2. If **Which Sub-Module** appears, select the sub-module you want to configure.
3. In the field grid, select each field row whose mandatory value you want to toggle.
4. Select the save action that matches your next task.

   | If you want to… | Select |
   |---|---|
   | Save the current mandatory-field list | **Save** |
   | Save the current mandatory-field list and leave the page | **Save and Close** |

**Result:** The selected mandatory values are ready for the chosen save action.

## Handle configuration branches

The available surfaces change according to subscription access, available choices, edit
access, company information, and whether you have changed a value.

| If… | You see or do… |
|---|---|
| The subscription does not include Dynamic validation | The subscription-upgrade surface appears instead of the configuration form. |
| The selected module has sub-module choices | **Which Sub-Module** appears before the field list. |
| You can edit and the data has changed | **Save** and **Save and Close** become available. |
| Company information is available | **Last Modifications** appears and opens the audit-log tab. |
| Select the upper-right close control without changing data | The page leaves immediately. |
| Select the upper-right close control after changing data | A save-choice popup opens with `Do you want to save your changes?`. |

This page changes existing mandatory-field settings. It provides no controls to create or
delete configuration rows.

> **Caution:** Leaving after changing a value opens the save-choice popup. Choose the
> appropriate option there before leaving if you need to retain the change.

## When configuration goes wrong

Match the failed operation to its message before continuing.

| Action | Message | What to do |
|---|---|---|
| Module choices fail to load | `Server Error` | Check the module choices before continuing. |
| Sub-module choices fail to load | `Server Error` | Check the sub-module choices before continuing. |
| The field list fails to load | `Server Error` | Check the field list before changing rows. |
| Save | `Server Error` | Review the changes before leaving the page. |

For general error-message guidance, see General error messages.

## After saving

The save confirmation is `Your Company Mandatory Fields has been Saved Successfully`.
When **Last Modifications** is available, select it to open the audit-log tab and review the
modification history.

Continue with [Work procedure settings](https://pams-doc-test-fresh.atloria.app/p/pams-doc-test-fresh-N9B4TwWn3Q/user/configuration-process-approvall)
when you need approval or editing rules, or with Sales jobs lifecycle when you need to use
the maintained mandatory fields in sales-job work.
