-1

How to add extra fields in cusotm module and get the config based on frontend.

0

Use you can use this one as a start. https://www.mage-world.com/blog/grid-and-form-in-magento-2-admin-panel-part-2.html

//for checkbox
$fieldset->addField(
            'status',
            'checkbox',
            [
                'name'      => 'status',
                'label'     => __('Status'),
                'required'     => true
            ]
        );
//for radio button
$fieldset->addField(
            'gender',
            'radio',
            [
                'name'      => 'gender',
                'label'     => __('Male'),
                'required'     => true
            ]
        );

$fieldset->addField(
            'gender',
            'radio',
            [
                'name'      => 'gender',
                'label'     => __('Female'),
                'required'     => true
            ]
        );

Hope it helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.