- 🇮🇳India manishsaharan New Delhi
I am requesting to Re-open this issue.
After using #3 suggestion, still not getting 'from' value on the form submit inside $form_state.$form['price']['range'] = [ '#type' => 'container', 'widget' => [ 'slider-price-range-from' => [ '#type' => 'hidden', ], 'slider-price-range-to' => [ '#type' => 'slider', '#input_title' => '', '#animate' => 'default', '#disabled' => FALSE, '#min' => 1, '#max' => 50, '#step' => 1, '#orientation' => 'horizontal', '#range' => TRUE, '#multi_value' => TRUE, '#size' => 10, '#display_inputs' => FALSE, '#display_values' => FALSE, '#display_values_format' => '$%{value}%', '#display_bubble' => TRUE, '#display_bubble_format' => '$%{value}%', '#slider_length' => '200px', '#display_inside_fieldset' => FALSE, '#validate_range' => TRUE, '#hide_slider_handle_when_no_value' => FALSE, '#fields_to_sync_css_selector' => [ 0 => '[name="slider-price-range-from"]', 1 => '[name="slider-price-range-to"]', ], '#values' => [10, 40], ], ], '#states' => [ 'visible' => [ ':input[name="price[value][custom]"]' => ['checked' => TRUE], ], ], ];