0
 <apex:input type="date" styleClass="input-text-center" value="{! data.offerDate }" 
                                        rendered="{! IF( AND( data.isField = true, data.isDateField = true ) , true, false ) }" />

The above code is displaying datepicker in chrome but not in IE. Could anyone please help me to resolve this issue.

0

This seems a known issue, some browsers do not show datepicker when using apex:input tag. You will need to find alternative for this.

Here is the link which says this

You can either use inputField if date is a standard/custom object property or try using jQuery datepicker.

  • When I use inputField its showing error like : Could not resolve the entity from <apex:inputField> value binding '{!data.offerDate}'. <apex:inputField> can only be used with SObjects, or objects that are Visualforce field component resolvable. – Thirumagal.s Jun 19 '18 at 10:46
  • And also jquery supporting for inputfield – Thirumagal.s Jun 19 '18 at 10:47
  • As I said, if its not a sObject property, u cannot use inputField. See jQuery datepicker example here – Hemant Jain Jun 19 '18 at 11:37
  • Thank you Jain. I will post my finding once I Done with it – Thirumagal.s Jun 20 '18 at 4:01
  • <apex:input styleClass="input-text-center" value="{! data.offerDate }" size="10" id="demo" onfocus="DatePicker.pickDate(false, this , false); "/> this code is working but it is showing timestamp in the EDIT mode. – Thirumagal.s Jun 21 '18 at 4:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.