function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
colorBoycolorBoy 

How to remove the 'default today option' from a Date inputfield ?

Hi, 

 

I write a VF page with five date inputFields ,  

and I found the default today was displayed on the right of the inputfields.

It's:         [______][ 2009/02/18 ].

May it's name is 'datepicker.insertDate' .

It make my row very long .

Can just user the Date inputField without that 'today' option?

Infact, If I want a default value, I can set it in my controller or sobject. 

here's my code ,is just a date inputField.

 

<apex:repeat value="{!boList}"

var="boInfo" id="pageRepeat">

<tr>

<td>

<apex:inputField id="nday" style="width:80px;" value="{!boInfo.transferDay__c}" />

</td>

</tr>

<-- five same inputField here --> <-- ... --></tr></apex:repeat>

 

 thanks!!!

 

Message Edited by colorBoy on 02-18-2009 08:55 PM
Richie DRichie D

Have you tried setting the value of boInfo.transferDay__c to be a date value? It'll then put the date into the field for you. 

 

Not sure if you can get rid of the popup link though. (Apart from putting some javascript in to find the element that contains the link and setting the style.display (or is it visibility?) to be hidden.)

 

R. 

daveespodaveespo

You can set the CSS to cause this to not be displayed:

 

    <style>
        .dateFormat{display:none;}
    </style>
 

CTU007CTU007
The CSS is cool....