0
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 3 years have passed since last update.

【Salesforce】apex:inputFieldをtype="date"にしたら[YYYYYYMMDD]が入力できるので[YYYYMMDD]にしたい

Last updated at Posted at 2021-01-26

動作確認

スクリーンショット 2021-01-26 091942.jpg

スクリーンショット 2021-01-26 092023.jpg

※画像だとわかりにくですが、YYYYを入力したらMM、DDとフォーカスが移動します

実現方法

test.page

<apex:inputField value="{!日付項目}" styleClass="slds-input" showDatePicker="false" type="date"/><apex:inputField value="{!日付項目}" styleClass="slds-input" showDatePicker="false" type="date" html-max="9999-12-31"/>

参考リンク

apex:inputField

input[type=date]で指定できる日付の上限

0
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
0
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?