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
anju vijayan 5anju vijayan 5 

SF1 look and feel on VF page to override new button

I am trying to override new button in salesforce1 using vf page. I am using describelayout call to fetch details of fields, sections and their positions.I need sf1 look and feel for every fields in my page. For example for date field I need to display same date picker SF1 uses. 

Salesforce style guide (http://sfdc-styleguide.herokuapp.com/) gives HTML and CSS, but none of the JavaScript code to turn this into an active component. I tried with apex:inputField in my Visualforce page, but the end result looked like the date picker that appears in browser pages, not like the SF1 one. Does Salesforce provide components that facilitate VF development in the SF1 environment, including components that provide the same look and feel that appear on standard SF1 pages, like date pickers, lookup controls, picklists etc. 
Or does Salesforce expect us to develop our own?
Gaurav KheterpalGaurav Kheterpal
This is precisely why Salesforce launched the lightning component framework (https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/). The Lightning Component Library offers access to hundreds of pre-built components for Salesforce1.

If my answer helps resolve your query, please mark it as the 'Best Answer' to benefit others and improve the overall quality of Discussion Forums.