1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

日付型のapex:inputFieldとshowDatePicker

Last updated at Posted at 2014-05-30

2014-05-30_120811.png

Winter'14からshowDatePickerを指定することでinputFieldで表示される日付挿入リンクを非表示に切り替えられるようになっています。もうCSSで頑張らなくても大丈夫。

<apex:page standardController="Opportunity" showHeader="true" sidebar="false">
  <apex:sectionHeader title="apex:inputFild" subtitle="ShowDatePicker" />
  <apex:form >
    <apex:pageBlock >
      <apex:pageBlockSection columns="1">
        <apex:inputField value="{!Opportunity.CloseDate}" showDatePicker="true" />
        <apex:inputField value="{!Opportunity.CloseDate}" showDatePicker="false" />
      </apex:pageBlockSection>
    </apex:pageBlock>
  </apex:form>
</apex:page>
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?