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
Jessica MockJessica Mock 

Salesforce1 page changing to Desktop

I created visual force pages for home that contains two buttons 1 for searching and 1 for creating new contact.  I created this for Salesforce1. I added this code for global search 

<form action="/<community name>/search/SmartSearch" method="get">

  <input id="phSearchInput" type="text" name="str"/>

  <input type="submit" value="Search"/>

</form>

The problem I have is that it take me out of mobile and into desktop. How do I stay in mobile?
Rahul SharmaRahul Sharma
I think form action does not works properly in Salesforce one.
So you can use javascript or jquery to perform the validation and use Salesforce Navigation (http://www.salesforce.com/us/developer/docs/salesforce1/Content/vf_dev_best_practices_navigation.htm) for redirection!