SIGN IN SIGN UP

Login to your account

Username or Email *
Password *
Remember Me

Search Quiz

Search for a Quiz

No results found

Streak

Mon Tue Wed Thu Fri Sat Sun
Longest Streak: Current Streak:
Administrator Progress ( Quizzes)
Flow Builder Progress | ( Lessons)
Apex Beginner Progress | ( Lessons)
Apex Intermediate Progress | ( Lessons)
Integration Progress ( Quizzes)
LWC Progress | ( Lessons)
Apex vs Flows Progress | ( Lessons)
Experience Cloud Progress ( Quizzes)
Exercises ( Quizzes)

There are several ways to make a field read-only in Salesforce. Here are some of them:

  1. Field-Level Security: You can make a field read-only for a specific profile or permission set using field-level security. This can be done by going to the object's detail page, selecting the field, and clicking on the "Set Field-Level Security" button.

    image
  2. Page Layouts: You can make a field read-only on a page layout by going to the object's detail page, selecting the page layout, and then dragging the field into the "Read Only" section of the layout.

    image
  3. Validation Rules: You can create a validation rule that prevents users from editing a field. For example, you could create a validation rule that says "if the field is not blank, prevent users from editing it."

    AND(
      ISCHANGED(AnnualRevenue),
      NOT(ISNEW())
    )
    ​
  4. Triggers: You can create a trigger that prevents users from editing a field. For example, you could create a trigger that says "if the field is not blank, prevent users from editing it."

    trigger PreventAccountNameUpdate on Account (before update) {
        for(Account acc : Trigger.new) {
            if(acc.Name != Trigger.oldMap.get(acc.Id).Name) {
                acc.Name.addError('You are not allowed to update the Name field on the Account object.');
            }
        }
    }
    ​

Overall, there are multiple ways to make a field read-only in Salesforce depending on your specific needs and requirements.

TODAY

1 Eray Dere 100
2 Sercan Kara 35
3 Ciro Miguel Gongo 35

Last 7 Days

1 Derya Baskol 2487
2 Solmaz Aliyeva 1115
3 Sercan Kara 835
4 Nyaradzai Shoko 661
5 Eray Dere 460
6 Okan Ozcelik 385
7 Efe Kadioglu 374
8 Ciro Miguel Gongo 347
9 Ridvan Ay 285
10 Esranur Bozdemir 260
11 Alaattin Kokcu 245
12 Bahar Erdagi 240
13 Osman Demirel 212
14 Nora Arslan 200
15 Aysun Bilgic 160
16 Ahmet Derdiyok 130
17 Evren Akcay 125
18 Mira Ince 100
19 EA 95
20 Sevilay Zencirkiran 90

Last 30 Days

1 Derya Baskol 2167
2 Solmaz Aliyeva 1065
3 Sercan Kara 765
4 Nyaradzai Shoko 661
5 Eray Dere 460
6 Ciro Miguel Gongo 347
7 Okan Ozcelik 330
8 Ridvan Ay 260
9 Alaattin Kokcu 230
10 Esranur Bozdemir 225
11 Nora Arslan 200
12 Bahar Erdagi 195
13 Osman Demirel 182
14 Aysun Bilgic 130
15 Evren Akcay 115
16 Mira Ince 100
17 EA 95
18 Sevilay Zencirkiran 90
19 Yeliz Celiker 80
20 Ahmet Derdiyok 65

All Times

1 Derya Baskol 98011
2 Solmaz Aliyeva 49880
3 Okan Ozcelik 31073
4 Tugbag Tamer Yilgin 28630
5 Engin Basturk 27031
6 Fatih 24338
7 Bahar Erdagi 21617
8 Zehra Bulut 21598
9 Emel Sarli 20845
10 Zeynep Yildiz 19597
11 Alaattin Kokcu 18067
12 ZY 18011
13 Burcu Derdiyok 16651
14 Cavidan 16514
15 Ozlem Helva 16258
16 Sebahattin Dalgic 15751
17 Esra Balci 15333
18 Ada Lozzy 14760
19 Ahmet Derdiyok 14426
20 Hakan Can 13232
Go to top