script-server icon indicating copy to clipboard operation
script-server copied to clipboard

Parameters - Type List - Allow editable / Allow custom value

Open csphoenix1 opened this issue 6 years ago • 7 comments

It could be useful to allow make type list parameter as editable.

In case we have set a list of predefined values in the JSON file, if the user want to change some things in the value of the list element it have selected, there is no option to edit the value or to add a custom value for the user. In other words, the users have no other choice than the element in the list.

Is it possible to add 2 parameters like for example :

  • allow_custom_value_in_list_type
  • allow_editable_element_in_list_type

Thank you :)

csphoenix1 avatar Jul 31 '19 08:07 csphoenix1

Hi @csphoenix1 are these 2 parameters just proposed names for the same feature? Or are they different?

bugy avatar Aug 17 '19 09:08 bugy

Hi @bugy,

If I remember, this request was for 2 editables parameters. But after re-reading my request today, I understand the 2 parameters in my examples was the same thing because custom/editable is the same.

So, in conclusion, it's for the same feature :)

csphoenix1 avatar Dec 25 '19 11:12 csphoenix1

Done, new type is called editable_list, user can either select a value from the list or type his own. I had to use a different UI component for it, than previous combobox for 2 reasons:

  1. the UI library I'm using doesn't support editable combobox, so I would have to write quite some changes to make it work
  2. even after I did it, the interaction with custom values was not very convenient. I find the behaviour of the used component cleaner (with a search and highlighting)

bugy avatar Mar 25 '21 09:03 bugy

setting default value is not working in editable_list. also acts strange i think if default value is part of one of the values on the list (preconfigured) it will list them only

yosefy avatar Aug 04 '21 10:08 yosefy

Hi @yosefy, thanks for reporting, I'll take a look. Does everything else work good there?

bugy avatar Aug 04 '21 14:08 bugy

yes if i don't set default all works perfect

yosefy avatar Aug 05 '21 15:08 yosefy

I totally forgot this ticket and checked it only now. I'm really sorry for the delay

Unfortunately, the current behavior is kind of expected. The component is performing automatic filtering when you write a value (doesn't matter if it's a default one, or you just input it from a keyboard). This is not ideal and might be confusing, but for the current version I would keep it

bugy avatar Sep 14 '21 12:09 bugy