Salesforce Checkbox Default Value

Salesforce checkbox default value refers to a predefined value allocated to a checkbox field when the records are created.

The default value decides whether the checkbox will be initially checked, which means the value will be True, or unchecked, which means the value will be False when a new record is created.

If you want to learn how to set the checkbox default value, you have come to the right place. We cover this topic in both Salesforce Lightning and Salesforce Classic editions.

How to Set the Checkbox Default Value in Salesforce

Here, we will learn how to set the checkbox default value in Salesforce.

Let’s take an example. Imagine I am the team lead in Avis Budget Group, a company based in the United States of America. It is a car rental company that utilizes Salesforce for customer engagement and to improve its rental services.

As a team lead, I have tasks in which I send a maximum of 100 cars on rent. If I complete the whole task in a day, then the checkbox IsCompleted is present under the task object that I created using the checkbox data type we set as checked. However, the default value I set was unchecked.

Here are the following steps:

1. Log into your Salesforce Account –> Click on the Setup option.

How to set the checkbox default value in Salesforce

2. Select the Object Manager tab that is present on the nave bar.

How to set the checkbox default value in Salesforce Lightning

3. Enter the Task in the Search box –> Select the Task object.

Set the checkbox default value in Salesforce

4. Click on the Fields & Relationships option.

See also  External Lookup Relationship in Salesforce
Set the checkbox default value in Salesforce Lightning

5. To create the new checkbox field for setting the default value related to the task object, click on the new button.

Salesforce set the checkbox default value

6. Here, we select the checkbox data type. This checkbox datatype permits the users to select a true or false value. The true value represents the checked field, and the false value represents the unchecked field. Click on the Next Button.

Salesforce Lightning set the checkbox default value

7. Now, enter the details related to the checkbox field. First, fill out the Field Label as IsComplete. After that, enter the field name. Click on the next button.

How to set checkbox default value in Salesforce

8. Now establish field-level security. Here, we select the profile to which we want to grant edit access to this field via field-level security. Click on the next button.

How to set checkbox default value in Salesforce Lightning

9. Now add to the page layouts. Here, select the page layouts that should include their fields. The field will be added as the last field in the first two-column section of these page layouts. Click on the save button.

Set checkbox default value in Salesforce

10. Click on the App Launcher at the top left corner. The drop-down menu will open. In the search box of the App Launcher, enter Sales. Select Sales, and the Sales page will open.

Here, we are selecting the task object. Now we create a new record; for this, click on the new button. Enter the details. Fill the task name car rental, then we can see that the Iscomplete checkbox is unchecked by default, and then click on the save button.

Set checkbox default value in Salesforce Lightning

11. If we want to check the checkbox, click on the pencil icon in the field. We can check the Iscomple checkbox and click on the save button. That time, our Iscomplete checkbox is checked.

Salesforce set checkbox default value

In this way, we understand how to set the checkbox default value in Salesforce Lightning. 

See also  Salesforce Encrypted Field

Mass Editing Salesforce Records with a Checkbox | Bulk Edit Checkbox in Salesforce

Conclusion:

I hope you read the complete article and we get the complete idea related to the set checkbox default value in Salesforce. I have also explained all the steps of setting the checkbox default value in Salesforce.

You may like to read: