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
David WheatleyDavid Wheatley 

URL search (google) not actually executing search

Really simple question. We have a button that launches
http://google.com?q={!Contact.Name}
but it doesn't actually execute the search, so the user has to hit enter or click the search button on the google page. Is there syntax I can add that will 'hit enter' on the target page?
Best Answer chosen by David Wheatley
Temoc MunozTemoc Munoz
Can you try this instead:

https://www.google.com/search?q={!Contact.Name}

All Answers

Temoc MunozTemoc Munoz
Can you try this instead:

https://www.google.com/search?q={!Contact.Name}
This was selected as the best answer
Amit Chaudhary 8Amit Chaudhary 8

Please check below post with step by step process with screen shot
1) https://developer.salesforce.com/forums/?id=906F0000000DDO6IAO
2) https://developer.salesforce.com/forums/?id=906F0000000BPIOIA4
3) https://developer.salesforce.com/forums/?id=906F0000000BRNfIAO

To clear this challange you need do below steps:-

Step 1 :- Create a Button on contact object like below 
Step 2 :- Link detail should be like below.

Name :- Google_Info
Button or Link URL :-  http://google.com/#q={!Contact.Name}
Display Type :- Detail Page Button

Step 3 :- Add the button on contact page layout. Please select "Contact Layout"
Step 4 :- Then click on Edit and add button on page.
Step 5 : - Save.

Please let us know if this will help you.

Thanks
Amit Chaudhary
 
SAHG-SFDCSAHG-SFDC
HI 

You can try this

Contact Custom Button or Link: Google Search http://www.google.com/search?q={!Contact.Name}
David WheatleyDavid Wheatley
Adding search to the url worked of course. Thanks. The trailhead challenge:
https://developer.salesforce.com/trailhead/customizing_user_interface/ui_nav_buttons_links
has the old syntax, maybe someone could update that?