Originally Posted by gior_08
I am assuming you are referring to a Yes/No button.
If so, you should make the following change to the module.
Add the following line
$schema['default']['myMessage'] = [
'label' => static::t('My message'),
+ 'type' => 'XLite\View\FormModel\Type\SwitcherType',
'position' => 900,
That's pretty much it.
If you already have the demo module installed in your store, don't forget to drop the existing 'myMessage' column from the database before re-deploying. Otherwise it will most likely produce an error that data format is incorrect.