Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listbox (multiple) TV: Re-introduce rendering values by selection order #16561

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

smg6511
Copy link
Collaborator

@smg6511 smg6511 commented Apr 19, 2024

What does it do?

Adds a new input option for this TV type to control the sorting of saved values when rendered to a Resource.

Why is it needed?

A community member requested this functionality be brought back, pointing to possible use cases where preservation of the order of selections made is desirable.

How to test

Create a Listbox (Multiple-Select) TV and experiment with changing the TV behavior via the new Preserve Entry Order option and verify that when this option is set to “Yes,” randomly selected options are shown in the order selected after saving and reloading. Conversely, verify the current default behavior remains intact (i.e., saved values appear in the same order defined by the list itself, no matter the order in which they were selected).

Related issue(s)/PR(s)

Resolves #16495.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MODX 3.0.4-pl - Listbox Multiselect
1 participant