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
ShadowlessKickShadowlessKick 

Salesforce1\Visualforce

Could someone please clarify this topic about Salesforce1?   Say we are talking about the Opportunity page layout.  Is it possible to define an Opportunity page layout for users viewing pages through Salesforce1 on their phone and a different Opportunity page layout for the same users viewing through a browser on their desktop computers.  I keep reading contradictary information.  
Best Answer chosen by ShadowlessKick
kgilkgil
No, it is not possible with standard functionality. Salesforce1 will honor whatever page layout is assigned for that user in the full site, minus any unsupported items on the page.

Now if you were to do a Visualforce override you could route a user to 2 different places depending on if they are in Salesforce1 or the standard full site. The issue here is that for the Salesforce1 user you would need to implement an entire custom Visualforce Record detail page since you cannot assign or route to 2 different standard layouts. 

One other option I have heard is you can write an override page that would check for Salesforce1 again, and then it would change the users profile to one that is assigned a mobile-specific layout. This can get tricky also and really only works well if the user is not switching between platforms often.

Check for Salesforce1 context:
https://developer.salesforce.com/docs/atlas.en-us.salesforce1.meta/salesforce1/vf_dev_best_practices_pages_multipurpose.htm

Don't forget Salesforce1 navigation functions!
https://developer.salesforce.com/docs/atlas.en-us.salesforce1.meta/salesforce1/salesforce1_dev_jsapi_sforce_one.htm

All Answers

kgilkgil
No, it is not possible with standard functionality. Salesforce1 will honor whatever page layout is assigned for that user in the full site, minus any unsupported items on the page.

Now if you were to do a Visualforce override you could route a user to 2 different places depending on if they are in Salesforce1 or the standard full site. The issue here is that for the Salesforce1 user you would need to implement an entire custom Visualforce Record detail page since you cannot assign or route to 2 different standard layouts. 

One other option I have heard is you can write an override page that would check for Salesforce1 again, and then it would change the users profile to one that is assigned a mobile-specific layout. This can get tricky also and really only works well if the user is not switching between platforms often.

Check for Salesforce1 context:
https://developer.salesforce.com/docs/atlas.en-us.salesforce1.meta/salesforce1/vf_dev_best_practices_pages_multipurpose.htm

Don't forget Salesforce1 navigation functions!
https://developer.salesforce.com/docs/atlas.en-us.salesforce1.meta/salesforce1/salesforce1_dev_jsapi_sforce_one.htm
This was selected as the best answer
ShadowlessKickShadowlessKick
Thank You for the clear answer that includes the options.  It is really appreciated.