Understanding Conditional Logic in Fields
Conditional logic allows you to set rules that determine the behavior of a field based on values from other fields. You can configure conditions to dynamically display a field as optional or mandatory in the create form or during inline editing on the details page, adapting to the editing requirements.
Note for non-admin users: If you don’t have access to Manage modules and fields, contact your BoldSales administrator to request the required permission.
Note for administrators: For managing permissions, refer to Managing Setup and Data Management Permissions.
Supported field types
You can define conditions using Single-select dropdown, Radio button, or Checkbox field types.
A Single-select dropdown or Radio button field type lets users choose one value from a list, and that choice can make a field optional or required.
A Checkbox field type works based on whether it is checked or unchecked, making it useful for scenarios like showing additional fields only when a specific option is checked or unchecked.
Setting up conditional logic
Note: You cannot add conditional logic to a field that is already included in the create form.
Additionally, you cannot add conditional logic to a field that already has a controlling field.
- Go to Setup from the left sidebar menu, then navigate to the respective module. For modules like Contacts and Companies, the fields listing page opens immediately. For modules like Pipelines or Sales Documents, open the Fields tab.
- Locate the field you want to configure.
- Click Add under the Dynamic field behavior column of the field and select Conditional logic from the options. This opens the Add Conditional Logic drawer.
- Alternatively, click the field’s name to open its configurations page, then click Add Conditional Logic under the Field Display and Editing Configurations section to open the Add Conditional Logic drawer.
- Select a field from the dropdown and define the criteria to add a condition.
- Click Add condition to include multiple conditions and decide whether all/any of the specified conditions must be met.
- After adding conditions, select whether the field should appear as optional or required in create forms or during inline editing on the details page.
- Click Add to save and apply the settings.
The following video shows how to set up conditional logic in a field.
Behavior of fields in create form with conditional logic
Conditional logic controls when certain fields appear and whether they are required, based on the values entered in other fields in the form. This ensures users only see and fill in fields when they are relevant, reducing clutter and capturing important details at the right time.
Imagine you manage customer onboarding requests for a B2B SaaS company. You want the Go-Live Date field to appear as mandatory only when the Subscription Plan is Enterprise and the Implementation Type is Guided Onboarding.
Set up conditional logic so that the Go-Live Date field appears and becomes required only when both conditions are met.
How does it work?
- If Subscription Plan is Enterprise but Implementation Type is Self-Service, the Go-Live Date field remains hidden.
- If Subscription Plan is Standard and Implementation Type is Guided Onboarding, the Go-Live Date field remains hidden.
- If both Subscription Plan is Enterprise and Implementation Type is Guided Onboarding, the Go-Live Date field appears and becomes mandatory in the form.
Note: In this example, the Go-Live Date field is not manually included in the create form. It is displayed only when the configured conditional logic criteria are met.
This ensures that onboarding teams capture a required go-live schedule only for customers who receive enterprise-level guided implementation services, while keeping the form simple for other onboarding scenarios.
Behavior of fields in details page with conditional logic (inline editing)
When editing a record, conditional logic works the same way as in create forms. Fields will appear and may become required based on the conditions you set.
Imagine you are managing a sales opportunity. At the early stages, you don’t need to know the closing date because the deal is still in prospecting. However, once the opportunity moves to Proposal, Negotiation, or Closed won, the closing date becomes critical for forecasting revenue and planning next steps in the sales process.
Set up conditional logic so that the Closing date field only appears and becomes mandatory when the stage is set to one of these advanced stages.
How does it work?
- If you update Stage to Prospecting or Qualification, the Closing date field will not be shown in the inline edit popup.
- If you update Stage to Proposal, Negotiation, or Closed won, the Closing date field will appear in the same edit popup and will be mandatory.
To summarize, when you edit a field that is used to define the conditions, the system checks whether the new value matches any of the configured conditions. If it does, the other field that has conditional logic applied will appear in the same popup as optional or required based on the conditions. If the value does not match any condition, that field will remain hidden. If there is more than one condition, the field will only appear when you edit the last field that makes the condition true.
On the other hand, when you edit the field that has conditional logic applied, changing its value does not affect the fields used in the conditions. The only exception is if this same field is also used as a condition for another field, in which case its value will impact that separate logic.
Frequently asked questions (FAQs)
What happens if a field used in a condition is removed from the form?
If a field used in a condition is removed from the form, the conditional logic will still apply when editing the record from the details page. Removing the field only affects its visibility on the create form, but the condition remains active in the background and will continue to influence behavior when the field is updated in the details page.
Can conditional logic hide a field completely?
Yes. A field with conditional logic remains hidden until the configured conditions are met. When the conditions are satisfied, the field appears and is displayed as either optional or required based on the configuration. If the conditions are not met, the field remains hidden.
For example, in the create form, the Go-Live Date field appears only when Subscription Plan is set to Enterprise and Implementation Type is set to Guided Onboarding.
What is the difference between conditional logic and controlling field?
Conditional logic lets you set rules to display a field as optional or mandatory based on another field’s value during record creation or inline editing. A controlling field creates a dependency where the master field can make the dependent field required, visible, or auto-populate values based on its input.