10 thoughts on “Rendering Lightning:RecordEditForm based on the page layout

    1. Naval Sharma Post author

      You need to check section.totalColumns value as we are using this to set the multipleColumn property.

      Reply
  1. Naval Sharma Post author

    You will have to use smallDeviceSize, mediumDeviceSize, largeDeviceSize attributes on lightning:layoutItem.

    Reply
  2. Simangaliso Mathenjwa

    nice work!, tell me if the field is marked as required on a page layout, will it be a required field on the component also?

    Reply
  3. Adeel Ahmad

    Great work Naval
    But i am having an issue here, Every time when i pass the page layout name it returns me null so i am unable to proceed further. Do you have any idea why it is not working or salesforce just updated the API

    Thanks!

    Reply
    1. Naval Sharma Post author

      Make sure that you are passing a correct name. If Opportunity has a page layout name “Opportunity Sales Layout” then you need to pass it like. “Opportunity-Opportunity Sales Layout”.

      Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.