I am trying to add radio option but showing single radio
without any label
$fieldset->addField(
'test',
'radio',
[
'label' => __('test'),
'title' => __('test'),
'name' => 'test',
'required' => true,
'values' => array(
array('value'=>'1','label'=>'Radio1'),
array('value'=>'2','label'=>'Radio2'),
array('value'=>'3','label'=>'Radio3'),
),
'disabled' => $isDisabled
]
);
Best Answer
change type from
radio
toradios
for more types you can look in to
namespace Magento\Framework\Data\Form\Element