Skip to main content

Creating Lightning Pages in Salesforce

 

🚀 Complete Tutorial: Creating Lightning Pages in Salesforce


🔹 1. What are Lightning Pages?

Lightning Pages are customized layouts in the Lightning App Builder where you can drag-and-drop components (standard, custom, or AppExchange) to design record pages, home pages, and app pages.

Think of it like page builder for Salesforce — no code needed, just drag-and-drop.


🔹 2. Types of Lightning Pages

  1. App Page → A one-page app with custom dashboards, lists, or reports.

  2. Home Page → Custom homepage for different profiles.

  3. Record Page → Customized layout for a specific object (e.g., Account, Contact, or a custom object).


🔹 3. Step-by-Step: Create a Lightning Page

Step 1: Open Lightning App Builder

  1. In Salesforce, click the ⚙️ Gear Icon (top right).

  2. Select Setup.

  3. In Quick Find, type App Builder.

  4. Click Lightning App Builder.


Step 2: Create a New Lightning Page

  1. Click New.

  2. Choose the page type:

    • App Page (dashboard-like view)

    • Home Page (custom home page)

    • Record Page (custom object page layout)

  3. Example: Select Record Page.

  4. Choose the object → e.g., Account.

  5. Enter a label: Account Custom Page.


Step 3: Select a Page Template

Salesforce gives layouts (1 region, 2 regions, header + sidebar, etc.).
Pick one → e.g., Header and Three Regions.


Step 4: Add Components

You’ll see a drag-and-drop builder:

  • Left Panel → Standard Components (Tabs, Related Lists, Report Charts, Path, Tabs, Visualforce, etc.).

  • Middle → Canvas Area.

  • Drag components to the page.

👉 Example:

  • Add Highlights Panel (shows key account info).

  • Add Related Lists.

  • Add a Report Chart to show account performance.


Step 5: Assign the Page

After designing:

  1. Click Save.

  2. Click Activate.

  3. Choose where to make it active:

    • Org Default → Applies to all users.

    • App Default → Only applies inside a specific app (e.g., Sales App).

    • App, Record Type, Profile → Assign based on conditions.


Step 6: Test the Page

  1. Go to App Launcher → open Sales App (or your custom app).

  2. Open an Account record.

  3. You should now see your new Lightning Page layout. 🎉


🔹 4. Example: Create a Home Page for Sales Users

  1. Go to App Builder → New → Home Page.

  2. Add Dashboard component.

  3. Add Recent Items.

  4. Add Report Chart (e.g., Opportunities by Stage).

  5. Save → Activate → Assign only to Sales Profile.

  6. When Sales Users log in, they’ll see this custom Home Page.

Comments

Popular posts from this blog

Conditional Statement in Python

It is used to solve condition-based problems using if and else block-level statement. it provides a separate block for  if statement, else statement, and elif statement . elif statement is similar to elseif statement of C, C++ and Java languages. Type of Conditional Statement:- 1) Simple if:- We can write a single if statement also in python, it will execute when the condition is true. for example, One real-world problem is here?? we want to display the salary of employees when the salary will be above 10000 otherwise not displayed. Syntax:- if(condition):    statements The solution to the above problem sal = int(input("Enter salary")) if sal>10000:     print("Salary is "+str(sal)) Q)  WAP to increase the salary of employees from 500 if entered salary will be less than 10000 otherwise the same salaries will be displayed. Solution:- x = int(input("enter salary")) if x<10000:     x=x+500 print(x)   Q) WAP to display th...

DSA in C# | Data Structure and Algorithm using C#

  DSA in C# |  Data Structure and Algorithm using C#: Lecture 1: Introduction to Data Structures and Algorithms (1 Hour) 1.1 What are Data Structures? Data Structures are ways to store and organize data so it can be used efficiently. Think of data structures as containers that hold data in a specific format. Types of Data Structures: Primitive Data Structures : These are basic structures built into the language. Example: int , float , char , bool in C#. Example : csharp int age = 25;  // 'age' stores an integer value. bool isStudent = true;  // 'isStudent' stores a boolean value. Non-Primitive Data Structures : These are more complex and are built using primitive types. They are divided into: Linear : Arrays, Lists, Queues, Stacks (data is arranged in a sequence). Non-Linear : Trees, Graphs (data is connected in more complex ways). Example : // Array is a simple linear data structure int[] number...

Top 50 Most Asked MERN Stack Interview Questions and Answers for 2025

 Top 50 Most Asked MERN Stack Interview Questions and Answers for 2025 Now a days most of the IT Company asked NODE JS Question mostly in interview. I am creating this article to provide help to all MERN Stack developer , who is in doubt that which type of question can be asked in MERN Stack  then they can learn from this article. I am Shiva Gautam,  I have 15 Years of experience in Multiple IT Technology, I am Founder of Shiva Concept Solution Best Programming Institute with 100% Job placement guarantee. for more information visit  Shiva Concept Solution 1. What is the MERN Stack? Answer : MERN Stack is a full-stack JavaScript framework using MongoDB (database), Express.js (backend framework), React (frontend library), and Node.js (server runtime). It’s popular for building fast, scalable web apps with one language—JavaScript. 2. What is MongoDB, and why use it in MERN? Answer : MongoDB is a NoSQL database that stores data in flexible, JSON-like documents. It...