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 1 year has passed since last update.

CF7で選択項目(チェックボックス)にデフォルトで複数のチェックを入れる方法

Posted at

CF7で選択項目(チェックボックス)にデフォルトで複数のチェックを入れる方法です。

ラジオボタンやチェックボックスであれば、 default:1 などと追記することで、1番目にデフォルトでチェックを入れることができますね。

ただし、チェックボックスの場合、デフォルトで複数にチェックしたいこともあるでしょう。

以下のように書くことで解決します。

[checkbox checkbox-1 default:1_3_5 "1" "2" "3" "4" "5" "6"]

_ で繋ぐことで、デフォルトで複数チェックを入れられます。

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?