回答編集履歴
2
補足
test
CHANGED
@@ -10,4 +10,6 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
+
複数のラジオボタンを表示可能なので`options`側で`id`を指定する必要があるみたいです。たぶん、「在籍中」と「離職中」を1つのinputメソッドで出力させることもできると思います。
|
14
|
+
|
13
15
|
[マニュアル](https://book.cakephp.org/3.0/ja/views/helpers/form.html#create-radio-button)にも関連する情報はあったので参照してください
|
1
両方載せた
test
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
以下のようにやればできそうでした
|
2
2
|
|
3
3
|
```
|
4
|
+
|
5
|
+
<?php echo $this->Form->input('rdoZaishokuKbn1', ['type' => 'radio', 'name' => 'rdoZaishokuKbn1', 'options' => [['value' => '1', 'text' => '', 'id' => 'rdoZaishokuKbn11']], 'onclick' => 'shokumuKikanListCtl(1);', 'label' => false, 'templates' => ['inputContainer' => '{{content}}', 'inputContainerError' => '{{content}{error}}'], 'hiddenField' => false]); ?>在職中
|
4
6
|
|
5
7
|
<?php echo $this->Form->input('rdoZaishokuKbn1', ['type' => 'radio', 'name' => 'rdoZaishokuKbn1', 'options' => [['value' => '2', 'text' => '', 'id' => 'rdoZaishokuKbn01']], 'onclick' => 'shokumuKikanListCtl(1);', 'label' => false, 'templates' => ['inputContainer' => '{{content}}', 'inputContainerError' => '{{content}{error}}'], 'hiddenField' => false]); ?>離職中
|
6
8
|
|