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

Uncontrolled form input in React-JS

  Uncontrolled form input in React-JS? If we want to take input from users without any separate event handling then we can uncontrolled the data binding technique. The uncontrolled input is similar to the traditional HTML form inputs. The DOM itself handles the form data. Here, the HTML elements maintain their own state that will be updated when the input value changes. To write an uncontrolled component, you need to use a ref to get form values from the DOM. In other words, there is no need to write an event handler for every state update. You can use a ref to access the input field value of the form from the DOM. Example of Uncontrolled Form Input:- import React from "react" ; export class Info extends React . Component {     constructor ( props )     {         super ( props );         this . fun = this . fun . bind ( this ); //event method binding         this . input = React . createRef ();...

JSP Page design using Internal CSS

  JSP is used to design the user interface of an application, CSS is used to provide set of properties. Jsp provide proper page template to create user interface of dynamic web application. We can write CSS using three different ways 1)  inline CSS:-   we will write CSS tag under HTML elements <div style="width:200px; height:100px; background-color:green;"></div> 2)  Internal CSS:-  we will write CSS under <style> block. <style type="text/css"> #abc { width:200px;  height:100px;  background-color:green; } </style> <div id="abc"></div> 3) External CSS:-  we will write CSS to create a separate file and link it into HTML Web pages. create a separate file and named it style.css #abc { width:200px;  height:100px;  background-color:green; } go into Jsp page and link style.css <link href="style.css"  type="text/css" rel="stylesheet"   /> <div id="abc"> </div> Exam...

JDBC Database Connectivity using JSP and Servlet, Database connectivity on Java

JDBC Database Connectivity using JSP and Servlet, Database connectivity on Java JDBC:-   JDBC means Java database connectivity, it is used to connect from the front-end(application server) to the back-end(database server) in the case of Java web application. The database provides a set of tables to store records and JDBC will work similarly to the  bridge between the database table and application form. 1)  Class.forName("drivername")  // Manage Drive         Class.formName("com.mysql.jdbc.Driver");  // MYSQL      Class.forName ("oracle.jdbc.driver.OracleDriver"); //Oracle 2)  Manage Connection String     It establish connection from application server to database server, Java provide DriverManage class and getConnection that will return Connection object.    Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/databasename","username","password"); 3)  Manage Statement to...