Loading

How to Make Salesforce Flow Screen Component Read-Only

Publiseringsdato: Aug 18, 2026
Beskrivelse
This article will help you to showcase certain details of currently logged-in users in a screen flow with a Read Only Mode. The required fields to be displayed include the user’s: 
  • First Name
  • Last Name
  • Email
  • Mobile
Løsning

We'll use a Display Text element to solve this use case.

Step 1: Define Flow Properties

a. From any page in Lightning, click on the Gear icon in the top right corner
b. Select Setup and in the Quick Find box, enter and click on Flows
c. Click on the New Flow button
d. Select Screen Flow and click on Create button

New Flow dialog with Screen Flow option selected

Step 2: Add the Screen Element to Display Fields in Read-Only Mode

a) On Flow Designer, click on the + icon and select the Screen element
b) Configure Screen Properties:
i. Enter Name in the Label field. API Name will be auto-populated

Screen element properties panel with Label field populated

Step 3: Add the Section Component to Configure the Column Layout

a) In the Screen element page, navigate to the Component tab and enter Section in the Component search field
b) Drag and drop the Section component onto the screen
c) Check the box for Include Header
d) Enter the desired Name for the Section into the Label field (e.g., User Login information). The API Name will be auto-populated
e) In the Configure Columns section, click on the Add Columns button to split the Section into two columns

Section component configured with two columns and header enabled

Step 4: Add the Display Text Component to Show the Logged-In User Details

a) Navigate to the Component tab and search for Display Text in the search field
b) Drag and drop the Display Text component into the Section component. In this example, we'll use four Display Text components set up as follows:
i. First Display Text component
  • API Name: FirstName
  • Text box: First Name: {!$User.FirstName}
ii. Second Display Text component
  • API Name: LastName
  • Text box: Last Name: {!$User.LastName}
iii. Third Display Text component
  • API Name: Email
  • Text box: Email: {!$User.Email}
iv. Fourth Display Text component
  • API Name: Mobile
  • Text box: Mobile: {!$User.MobilePhone}
c) Click on the Done button

Four Display Text components showing First Name, Last Name, Email, and Mobile field values

In the end, the Flow will look like the following:

Completed Screen Flow with read-only Display Text elements for user details

Step 5: Save and Activate Your Flow

Frequently Asked Questions

Can this technique be used for fields other than User fields?

Yes. Display Text elements can reference any merge field available in the flow, not just $User fields — you can use record variables, formula variables, or other resource values the same way.

Can I format the Display Text output, such as adding bold text or line breaks?

Yes. The Display Text component's rich text field supports basic formatting like bold, italics, and line breaks alongside merge fields.


Written by: Rakesh Gupta | Salesforce MVP
Rakesh is Senior Solution Architect, Salesforce MVP, and Author. With a background in computer science, Rakesh is passionate about solution design and process automation.

Submissions reflect only the opinions of the user who made available the Submission and not the opinions of Salesforce, regardless of whether the user is affiliated with Salesforce, and may contain or constitute products, services, information, data, content, and other materials made available by or on behalf of third parties ("Third Party Materials"). Salesforce neither controls nor endorses, nor is Salesforce responsible for, any Third Party Materials, including their accuracy, validity, timeliness, completeness, reliability, integrity, quality, legality, usefulness or safety, or any applicable intellectual property rights. Any Submissions made available through any message board or forum in response to posted questions, or that otherwise purport to answer any questions, including any questions about Salesforce or Programs, are made available for your general knowledge only and should never be relied upon as answers to your specific questions (even if an answer is marked as a "best" answer or with any similar qualifications). You should always contact Salesforce support for answers to your specific questions. Salesforce has no control over Submissions and is not responsible for any use or misuse (including any distribution) by any third party of Submissions.

If you have questions, tap into the wisdom of our entire Trailblazer Community here: https://trailhead.salesforce.com/trailblazer-community/feed

Knowledge-artikkelnummer

000395291

 
Laster
Salesforce Help | Article