0

While creating a lot a new fields to on object, I've inadvertently added them to all layouts. Is there any quick way to de-assign a field from a given layout, much like during field creation?

2 Answers 2

1

I don't know if there is a faster way... but a quick one is from Page Layout go in your desired layout and hold down the ctrl (also the shift works) key to select multiple fields, then just hit the Remove button from one of them

0

You can try using metadata API by retrieving required layouts and remove "layoutItems" tags from metadata of desired fields and later re-deploy layouts using VSCode, Workbench, ANT.

<?xml version="1.0" encoding="UTF-8"?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
    <layoutSections>
        <layoutColumns>
            <layoutItems> ---> "Remove start"
                <behavior>Readonly</behavior>
                <field>RemoveField1__c</field>
            </layoutItems> ---> "Remove end"
            </layoutColumns>
    </layoutSections>
   </Layout>

Also, you might want to review Idea and vote for this feature.

Thanks

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .