I've created a custom module in which I've a drop down field having "Yes/No" value, here is the screenshot:
I just want to replace this drop down into switch ,just like below screenshot:
How can I achieve the same?
I've created module from "Silksoftware" and to creating the form fields it's using block just like:
$fieldset->addField(
'available_every_week',
'select',
[
'label' => __('Available Every Week'),
'title' => __('Available Every Week'),
'name' => 'available_every_week',
'options' => \Namespace\Test\Block\Adminhtml\Gametype\Grid::getOptionArray5(),
'disabled' => $isElementDisabled
]
);
Where
Namespace\Test\Block\Adminhtml\Gametype\Grid::getOptionArray5
is returning values(Yes/No) for the dropdown.
Waiting for the update.