LoginSignup
0
1

More than 3 years have passed since last update.

MicroCMS 入力フォーム一覧

Last updated at Posted at 2020-09-07

プラン契約後にしか使用できないフォームもあるので後日追記予定

テキストフィールド

自由入力の1行テキストです。タイトル等に適しています。
inputform_testtesttest.microcms.io_create-api (1).png

テキストエリア

自由入力の複数行テキストです。プレーンテキストによる入力となります。
inputform_testtesttest.microcms.io_create-api.png

リッチエディタ

自由入力の複数行テキストです。リッチエディタによる編集が可能です。APIからHTMLが取得できます。
inputform_testtesttest.microcms.io_create-api (2).png

画像

画像用のフィールドです。APIからは画像URLが返却されます。
inputform_testtesttest.microcms.io_create-api (3).png
inputform_testtesttest.microcms.io_create-api (5).png

日時

Date型のフィールドです。カレンダーから日時を選択することができます。
inputform_testtesttest.microcms.io_create-api (4).png

真偽値

Boolean型のフィールドです。スイッチでオン/オフを切り替えることができます。
inputform_testtesttest.microcms.io_create-api (6).png

セレクトフィールド

定義したリストの中から値を選択するフィールドです。設定により複数選択も可能です。
inputform_testtesttest.microcms.io_create-api (6)のコピー.png

セレクトフィールド(複数選択可)

inputform_testtesttest.microcms.io_create-api (6)のコピー2.png

数字

Number型のフィールドです。入力時は数値型のキーボードが開きます。
inputform_testtesttest.microcms.io_create-api (6)のコピー3.png

レスポンス例

{
    "contents": [
        {
            "id": "fat97z0fc",
            "createdAt": "2020-09-07T05:00:34.844Z",
            "updatedAt": "2020-09-07T05:00:34.844Z",
            "publishedAt": "2020-09-07T05:00:34.844Z",
            "textfield": "自由入力の1行テキストです。タイトル等に適しています。",
            "textarea": "自由入力の複数行テキストです。\nプレーンテキストによる入力となります。",
            "richediter": "<p><strong>自由入力</strong>の複数行テキストです。<br><code>リッチエディタによる編集が可能です。</code><br><em>API</em>から<em>HTML</em>が<u>取得</u><s>できます。</s></p>",
            "image": {
                "url": "https://images.microcms-assets.io/protected/ap-northeast-1:33424e1d-3350-44a5-bf88-758450577d39/service/inputform_testtesttest/media/150x150.png"
            },
            "date": "2020-09-07T03:30:00.000Z",
            "boolean": true,
            "selectfield1": [
                "Item1"
            ],
            "selectfield2": [
                "Item1",
                "Item3"
            ],
            "number": 1234
        }
    ],
    "totalCount": 1,
    "offset": 0,
    "limit": 10
}

追記予定

  • ファイル
  • インラインフレーム
  • コンテンツ参照
  • 複数コンテンツ参照
  • カスタムフィールド
  • 繰り返しフィールド
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