Loading

Visualforce input tag date picker browser compatibility

Julkaisupäivä: Jun 26, 2023
Kuvaus

If you are using <apex:input> VF tag of type date, you may notice that the date picker will not work in certain browsers.

Reason: 
apex:input supports newer HTML5 input types but not all browsers support the date type of the input element to provide date-picking UI. If it isn't supported then the browser will show a usual text input field instead of date-picker.

Click here for browser compatibility details.

 
Ratkaisu

An Alternate Solution to use Date Picker is to use <apex:inputField> instead of <apex:input>. But this only works with Standard /Custom Object Fields and does not work for Controller properties.
Knowledge-artikkelin numero

000386422

 
Ladataan
Salesforce Help | Article