• ForceDev54
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

Hi,

 

I have an interesting scenario. 

 

I have a page layout and consider i have 3 fields in the layout.

 

How do i get all the field api names that are available in a page layout for a custom object in apex?

 

Thanks in advance

 

 

Hi,

Consider, I have a following scenario,

 

Object A has 3 fields named Field 1, Field 2, Field 3 and 2 record types named rct1 and rct2.

In rct1, I have Field 1 and Field 2. (hiding Field 3) and assign it to the page layout 1.
In rct2, I have Field 2 and Field 3. (hiding Field 1) and assign it to the page layout 2.

 

I am not using any field level security and I cannot change the existing one.
I am creating a template for the data load.

 

If I select rct1 from select list, I want to only show Field 1 and Field 2 in the template.
If I select rct2 from select list, I want to only show Field 2 and Field 3 in the template.

 

How do I get the fields from the fielddescriberesult based on the selected record type?

 

Thanks in advance

Hi,

Consider, I have a following scenario,

 

Object A has 3 fields named Field 1, Field 2, Field 3 and 2 record types named rct1 and rct2.

In rct1, I have Field 1 and Field 2. (hiding Field 3) and assign it to the page layout 1.
In rct2, I have Field 2 and Field 3. (hiding Field 1) and assign it to the page layout 2.

 

I am not using any field level security and I cannot change the existing one.
I am creating a template for the data load.

 

If I select rct1 from select list, I want to only show Field 1 and Field 2 in the template.
If I select rct2 from select list, I want to only show Field 2 and Field 3 in the template.

 

How do I get the fields from the fielddescriberesult based on the selected record type?

 

Thanks in advance