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
Yasmina MoslehiYasmina Moslehi 

Add a custom button to a contact. Trailhead Challenge

Hello Communty

I am trying to complete this challenge:

To pass this challenge, create a custom button which opens a link to 'http://google.com?q=<CONTACT NAME>' - where <CONTACT NAME> is the current contact's name. Then add this button to the default 'Contact Layout'.
The custom button must be labeled 'Google Info' with the name 'Google_Info'.
The custom button must dynamically insert the contact's name using the appropriate merge field.
The custom button must be added to the 'Contact Layout' page layout.


But keep getting this error: 

Challenge Not yet complete... here's what's wrong: 
The 'Google Info' custom button was not found. Hint: Make sure that it is a Detail Page Button (not link) and that its added to the page layout.

Please view the seenshot.

What am i doing wrong? Thanks for your help! User-added image
Best Answer chosen by Yasmina Moslehi
Yasmina MoslehiYasmina Moslehi
Thanks for your help Ankit.
I realise now where I was making the mistake

All Answers

Ankit SehgalAnkit Sehgal
The "Google Info" button should show up under the Buttons tab and not custom links and make sure that its API name is"Google_Info". Also make sure that it is a detail page button and not a link.


User-added image



 
Yasmina MoslehiYasmina Moslehi
Thanks for your help Ankit.
I realise now where I was making the mistake
This was selected as the best answer
Yasmina MoslehiYasmina Moslehi

In the Display Type I was choosing Link instead of Button!

 
Mike MillsMike Mills
Just for future people with a similar issue - you must DRAG the button from the list of valid buttons into the layout section marked "Custom Buttons"
 
Thomas HThomas H
This was very helpful. Thanks ) I would have to "override" to drag the custom button into the Contact Detail - correct ?
Jerome MengulloJerome Mengullo
Mike Mills solved my problem
Gbolahan JolapamoGbolahan Jolapamo
Hi guys,

I have followed the outlined procedure and my custom detail page button appears as expected in the lightening actions menu of the contact detail page. however thechallenge says 'Challenge Not yet complete... here's what's wrong: 
Could not find a button name 'Google_Info' on a Contact page layout.' 


User-added image





 
Gbolahan JolapamoGbolahan Jolapamo
I am able to view the button and it functions properly but still...
Lenore MLenore M
Hello All,  I'm getting the this message.  Any ideas of how to get past this? I have verified that all setup matches everything listed above. 

User-added image
kashy kapoorkashy kapoor

Hi, Everyone.. I am having the same trouble. Challenge Not yet complete... here's what's wrong:
Could not find a button name 'Google_Info' on a Contact page layout.

1. I have made it a custom button and not link

2. The API also says Google_Info

3. I added it to custom button in contact layout..but still im getting the error message..

Im adding screenshots for reference. Anyone has any idea what is wrong here?

 

User-added image


User-added image




User-added image
 

Riyama DeyRiyama Dey
Hi Everyone,

I have followed all procedures and my custom detail page button appears as expected in the lightening actions menu of the contact detail page. however the trailhead challenge says 'Challenge Not yet complete... here's what's wrong: 
Could not find a button name 'Google_Info' on a Contact page layout.' 

I am stuck in it. Please help me.
Thank You.
 
Suryanarayan BeheraSuryanarayan Behera
1)First you need to go Object Manager , click on Contact object.
2)In contact object click on Button,Links and Actions.
3)Create a new Button, Name it Google Info.
4)User-added image
5)Then after saving this .Then go to Page Layout section . You have to click Contact layout and then click left side Buttons field then there you can see Google Info.  Drag it to custom button of custom detail . 
User-added image
   Sure you will get the result . Thank you .

 
Hetal ModiHetal Modi
Hi Suryanarayan, I tried all the steps you mentioned but it still shows error. When I go to Contact page, I don't see the button I created. Not sure if it is a Salesforce error?
Mounica ChandraMounica Chandra
Hi, I tried doing the same thing but still it shows the error.
krati gupta 37krati gupta 37
I am getting this error 


Challenge not yet complete in krati1307@metacube.com
Could not find a button name 'Google_Info' on a Contact page layout.
selma vieiraselma vieira
I did all the steps many times and i get the same error :-(
We couldn't find a button named 'Google_Info' on the 'Contact Layout' page layout.
roopa somasundramroopa somasundram
I got it. just at the end dont forget to save the pagelayout. U will get it.