You need to sign in to do that
Don't have an account?
Nervosa
Datepicker - a little problem in inputText.
Hi there!
There is a little problem with using DatePicker in inputText component on a VF page. I implement it like this:
<apex:inputText value="{!NewItemReleaseDate}" label="Release Date" onfocus="DatePicker.pickDate(false, this, false);" />
Calendar appears and date is picked well but it doesn't appear in inputText. Why? I can't see the solution. May be you do?
Thanks in advance.
instead of "this" you should put the actual path of Id for that inputtext field... this might help
<apex:page controller=’test’ id=”page1”>
<apex:form id=”form1”>
<apex:inputText value="{!newItemReleaseDate}" id="input1" onfocus="DatePicker.pickDate(false, 'page1:form1:input1', false);" />
</apex:form>
</apex:page>
All Answers
instead of "this" you should put the actual path of Id for that inputtext field... this might help
<apex:page controller=’test’ id=”page1”>
<apex:form id=”form1”>
<apex:inputText value="{!newItemReleaseDate}" id="input1" onfocus="DatePicker.pickDate(false, 'page1:form1:input1', false);" />
</apex:form>
</apex:page>
Thank you very much.
It was enough to assign ID's to page, form and inputDate component =)