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,
 ]
 );
asked Jan 30, 2020 at 7:54

1 Answer 1

0

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

answered Jan 30, 2020 at 10:08

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.