function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Iona DavidIona David 

Compact layout

Hi All,

I have created a compact layout for contacts for one of my challenge in trailhead. It appears to me fine and I have checked it as my primary compact layout but it is giving an error-

"Challenge not yet complete... here's what's wrong: 
Either the contact object does not have a compact layout named 'Phone and Email', or it is not set as the primary compact layout"

Please advise
Shyama B SShyama B S
Hi Lona, 
Please refer this link.
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000BUDQIA4

Make sure the the API name of the object is Phone_and_Email and not PhoneAndEmail.

Thanks,
Shyama
savita arekarsavita arekar
Thanks, Shyama. Changing API name works.
Mariena WiersemaMariena Wiersema
I checked this but this was not the solution to the error
Narendra Garud 5Narendra Garud 5
@Mariena Wiersema,

Please check whether you logged into the correct 'hand-on org'. 
I had same issue but it got solved.
Here is link:
https://developer.salesforce.com/forums/ForumsMain?id=9060G000000XijfQAC

Thanks,
Narendra