Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8082583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:09:43+00:00 2026-06-05T17:09:43+00:00

I am looking at hiding Email on Leads Page Layout. I am including it

  • 0

I am looking at hiding Email on Leads Page Layout.

I am including it in a section already with a visualforce page but PageLayout doesn’t detect that and still requires it to be on the layout.

Is there a way to remove it from the PageLayout?

I have read that you can edit a picklist but didn’t find any solid examples of doing that. I also read about Field Level Accessibility but I don’t think that’s the way to go since everyone is part of the same role and I am only excluding the detail based off if you’re the owner. I have also tried javascript but since my visualforce page is loaded in an iframe I can’t access the parent document of the iframe to be able to hide or remove the value from email while viewing not as the owner.

Any thoughts would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:09:45+00:00Added an answer on June 5, 2026 at 5:09 pm

    Try hiding the field with JavaScript stored in a Custom Button. In the On-Click JavaScript for the button, you can include code that will be run on page load by jQuery that hides the Email field. You can then hide the actual button as well. Very much a hack approach, but it should work.

    Here’s some code to put in the On-Click JavaScript button (modified from Daniel Llewellyn’s blog post and mgsmith’s force2b blog post). Hopefully this should get you jump-started. I didn’t include any code on how to hide the Email field, but you said you were already trying it through your Visualforce page, so I figured I’d leave that part to you. Cheers!

    var interval;
    //The main function that does all the work
    function appendScript() {
        // Include core jQuery library by injecting it into the DOM
        var script= document.createElement('script');
        script.type= 'text/javascript';
        script.src= 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js';
        head.appendChild(script);
    
        // It takes a second to load, so put in a delay
        // (we don't want to try and reference the script
        // before it is actually loaded, so we store the interval
        // in a global variable, and set up an interval.
        // this interval dealio. This will keep running 
        // until jQuery has been found to be loaded and then
        //clears the interval so it doesn't keep running.
    
        interval=self.setInterval(function(){
    
            //Check to see if jQuery has loaded                           
            if(jQuery) {
                //if jQuery has loaded, clear the interval
                window.clearInterval(interval);
    
                // Hide the Email field
    
                // Hide the custom button
                var btnName = 'buttonName';
                try{
                    var buttons = parent.document.getElementsByName(btnName);
                    for (var i=0; i < buttons.length; i++) {
                        buttons[i].className="btnDisabled ";
                        buttons[i].disabled=true;
                        buttons[i].type='hidden';
                    }
                } catch(e) {
                    // var ee = e.message || 0; alert('Error: \n\n'+e+'\n'+ee);
                 }
            }
        }, 300);    
    }
    
    appendScript();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking at code that toggles displaying and hiding a table column. I
Looking for a control that allows to select one text value at a time
I'm looking to implement a fairly basic jQuery slideshow. One that automatically loops through
I'm new to rewriting and I was looking for the regex that I can
I am looking for a modeling system that can do Harel state transition diagrams
tl;dr I have an HTML+CSS page layout using positioned and scrolling boxes to simulate
I'm looking for a method of hiding some text in an image. Not like
I'm looking for some solutions for creating an mp3 player in flash; one that
What would be the preferred way of hiding an element before the page is
I have been looking around for this but couldn't find an answer anywhere, so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.