0

I have created admin form with fieldsets. The issue is it isn't accepting float values and rounding them to integer values.

$fieldset->addField(
            'free_over',
            'text',
            [
                'name' => 'free_over',
                'label' => __('Free Over'),
                'title' => __('Free Over'),
               'required' => true,
            ]
        );
0

Resolved! It was database datatype issue. Set it to float(10,2).enter image description here

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.