question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Preserve order of selected options for mutli select variables

See original GitHub issue

Is your feature request related to a problem? Please describe. When using a multi select the order the options are selected are not reflected when outputting the variable. E.g. you use a multi select variable in the request body, the first selected option will be the first value in the request body and the second selected option will be the second value.

Describe the solution you’d like What I want: When I select the second option first and then the first option, then the second value should be first and the first value should be second.

Solutions: Either add an option to the variable settings to preserve the order when outputting or just change the default behaviour. The order the options are selected should be reflected in the output.

Describe alternatives you’ve considered I haven’t found any.

Additional context I am using HTTP-Shortcuts to remote control a vacuum cleaner using Valetudo. There is a REST endpoint to clean multiple rooms/segments. The request body looks like this: {"action":"start_segment_action","segment_ids":[{roomIDs}],"iterations":1,"customOrder":true} When I select room/segment “A” first, I would like it be cleaned first. Etc.

Would that be possible to implement?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Waboodoocommented, Sep 11, 2022

Closing this now as 2.23.0 has been released.

1reaction
Waboodoocommented, Aug 29, 2022

No, creating a new release or beta version is a separately kicked-off process. I create new versions whenever there’s a sufficiently large and/or stable set of changes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chosen: Keep Multiple Selection Order - Stack Overflow
It allows you to retrieve the selection order of a Chosen multiple select element, and also to set it from an array of...
Read more >
Keep selected option index after selecting value in multiselect
From a UX perspective, it sounds like the use-case is that the user is very likely to want to select consecutive items. Keeping...
Read more >
Multiselect options order - Material Design for Bootstrap
Hi, I was pretty positive suprised, as I found that, the order, which user select options in the mdb multiselect will correctly shown...
Read more >
Multiple select list results in order of last selected on top?
Hi. When I make a multiple selection from the list (see fiddle below), I cannot get the results (divs) to show in order...
Read more >
Field Type - Select multiple values - ServiceNow Community
Solved: When someone is filling in a Catalog Item I want them to have the ability to select multiple options, however the current...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found