Filter Multiselect behaviour change with empty query string (v3.7 vs v4.0) #9570

Closed
opened 2025-12-29 21:19:04 +01:00 by adam · 2 comments
Owner

Originally created by @PieterL75 on GitHub (May 2, 2024).

NetBox version

v4.0b2

Feature type

Change to existing functionality

Proposed functionality

In v3.7, a multiselect field had a text filter where values could be searched.
In v4.0, the multiselect is a scrollfield showing all values, and a CTRL-click is required to select multiple fields

This happens when the query string is empty

Ex: working as before (click the 'filters' tab)
https://beta-demo.netbox.dev/dcim/devices/?q=&serial=&asset_tag=&mac_address=&console_ports=&console_server_ports=&power_ports=&power_outlets=&interfaces=&pass_through_ports=&has_primary_ip=&has_oob_ip=&virtual_chassis_member=&config_template_id=1&local_context_data=&cf_testing=

Unintentionally filled fields : https://beta-demo.netbox.dev/dcim/devices/?config_template_id=1

Use case

Even with a simple query string, the form should only prefill the values from the query

Database changes

No response

External dependencies

No response

Originally created by @PieterL75 on GitHub (May 2, 2024). ### NetBox version v4.0b2 ### Feature type Change to existing functionality ### Proposed functionality In v3.7, a multiselect field had a text filter where values could be searched. In v4.0, the multiselect is a scrollfield showing all values, and a CTRL-click is required to select multiple fields This happens when the query string is empty Ex: working as before (click the 'filters' tab) https://beta-demo.netbox.dev/dcim/devices/?q=&serial=&asset_tag=&mac_address=&console_ports=&console_server_ports=&power_ports=&power_outlets=&interfaces=&pass_through_ports=&has_primary_ip=&has_oob_ip=&virtual_chassis_member=&config_template_id=1&local_context_data=&cf_testing= Unintentionally filled fields : https://beta-demo.netbox.dev/dcim/devices/?config_template_id=1 ### Use case Even with a simple query string, the form should only prefill the values from the query ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurestatus: revisions needed labels 2025-12-29 21:19:04 +01:00
adam closed this issue 2025-12-29 21:19:04 +01:00
Author
Owner

@jeffgdotorg commented on GitHub (May 2, 2024):

I'm not having any luck reproducing what you describe, or perhaps I've misunderstood your meaning.

The second link selects only the gre config template, even if I try to tickle a corner case by picking values for a few other fields, submitting, then editing the URL to include only the config_tempalte_id param. I also tried this with HTMX navigation both enabled and disabled, and it made no difference – although with HTMX enabled, the natural URLs created looked like the first one, compared to ones like the second one with HTMX disabled. That might be a clue.

@jeffgdotorg commented on GitHub (May 2, 2024): I'm not having any luck reproducing what you describe, or perhaps I've misunderstood your meaning. The second link selects only the `gre` config template, even if I try to tickle a corner case by picking values for a few other fields, submitting, then editing the URL to include only the `config_tempalte_id` param. I also tried this with HTMX navigation both enabled and disabled, and it made no difference – although with HTMX enabled, the natural URLs created looked like the first one, compared to ones like the second one with HTMX disabled. That might be a clue.
Author
Owner

@jeremystretch commented on GitHub (May 17, 2024):

This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.

@jeremystretch commented on GitHub (May 17, 2024): This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9570