You need to sign in to do that
Don't have an account?
Alok Kumar 17
unable to get datetimepicker on vf page
Hi all,
I am trying to get datetime picker in html input element on my vf page but i am getting below error:
Uncaught TypeError: Cannot read property 'addEventListener' of null
Uncaught TypeError: Cannot read property 'currentStyle' of null
Because of this i am not able to get date time picker.
can anyone help me in resolving this issue
I am trying to get datetime picker in html input element on my vf page but i am getting below error:
Uncaught TypeError: Cannot read property 'addEventListener' of null
Uncaught TypeError: Cannot read property 'currentStyle' of null
Because of this i am not able to get date time picker.
can anyone help me in resolving this issue
Can you share your code so I can help you out ?
Thanks
Go through the sample code and let me know if it helped
<apex:page > <apex:form > <table> <td> Date<br></br><input id="t" name="datee" onfocus="DatePicker.pickDate(false, 't', false);" size="12" tabindex="28" type="text" /><span class="dateFormat" style="display:none">[ <a href="javascript:DatePicker.insertDate('', 't', true);" >2/3/2011</a> ]</span></td> </table> </apex:form> </apex:page>
This is a known issue on Salesforce, you have to change your VF page API to 29 or under.
https://success.salesforce.com/issues_view?id=a1p300000008XU5AAM
KR
Meryem
After changing the API to 29, Still i am getting the same issue. Any other workaround ?