This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 119
NumberRangeFilterType can not set attribute " type:'number' '' , and 'label' is not work as well #323
Comments
CuteDeng
changed the title
NumberRangeFilterType can not set attr " type:'number' ''
NumberRangeFilterType can not set attribute " type:'number' '' , and 'label' is not work as well
Nov 27, 2019
Hi, Did you check the profiler to see the request parameters? I'm not sure to understand the problem...are the values submited? Could you show the request? |
|
@CuteDeng try this: // ...
->add('age', Filters\NumberRangeFilterType::class, [
'left_number_options' => [
'label' => 'LABEL_FROM',
'html5' => true
],
'right_number_options' => [
'label' => 'LABEL_TO',
'html5' => true
]
])
// ... Source: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In my project , I'm trying to use NumberRangeFilterType, but I found that a string value still can input to this form, and when I submit the form, the program throw an error => "No value found for key "left_number" in form data." So I try to set the following attribute, not work, can anyone tell me, what's the problem is ? thank you.
The text was updated successfully, but these errors were encountered: