You need to sign in to do that
Don't have an account?
sandeep sankhla
Can someone help me in overriding the Salesforce1 date picker in my VF page ??
Can someone help me in overriding the Salesforce1 date picker in my VF page ??
I am trying to get the salesforce1 datepicker look and feel in my VF page, which I am using as overriden page for Account..I want to get the same look and feel for date picker and date time picker...
I am trying to get the salesforce1 datepicker look and feel in my VF page, which I am using as overriden page for Account..I want to get the same look and feel for date picker and date time picker...
I am using following for external websites build on force.com. Look and feel is very good and the doucmentation is also very helpful.
https://github.com/smalot/bootstrap-datetimepicker
Regards,
Vivek Patel.
Please like or mark this as best answer if this answers your question to help others find better answer and improve the quality of developer forum.
All Answers
I am using following for external websites build on force.com. Look and feel is very good and the doucmentation is also very helpful.
https://github.com/smalot/bootstrap-datetimepicker
Regards,
Vivek Patel.
Please like or mark this as best answer if this answers your question to help others find better answer and improve the quality of developer forum.
Create a Visualforce Page: Create a new Visualforce page or edit an existing one where you want to customize the date picker.
Use <apex:input> with type="date": Replace the standard date field input with an <apex:input> tag with type="date" attribute to create an HTML5 date input field:
htmlCopy code
<apex:page standardController="YourObject__c"> <apex:form> <apex:inputField value="{!YourObject__c.DateField__c}" type="date" /> </apex:form> </apex:page>
This will render a date input field that utilizes the browser's native date picker.
Mobile Responsiveness: Ensure that the custom date picker is mobile-friendly and responsive. Test your VF page on the Salesforce1 mobile app to ensure it works well on mobile devices.
This simplified approach leverages the browser's built-in date picker and eliminates the need for custom JavaScript code. It provides a straightforward way to override the Salesforce1 date picker for date fields in your Visualforce page (https://mlinjectors.com/)s.