block-lab icon indicating copy to clipboard operation
block-lab copied to clipboard

Select control: Problem with spaces between "key : value" of choices

Open camya opened this issue 6 years ago • 3 comments

Hi,

at the moment, it's only allowed to add a choice in the format

key[SPACE][COLON][SPACE]value

eg.

news : News

The spaces are required.

Problem:

  • If a user misses to add a space, the frontend output is :value.
  • It's easy for new users to miss the requirement of spaces before and after the colon.

Suggestion:

Please also allow to complete skip the spaces!

Allowed key:value combinations.

key[COLON]value eg. news:News key[COLON][SPACE]value eg. news: News key[SPACE][COLON]value eg. news :News key[SPACE][COLON][SPACE]value eg. news : News

Demo choices:

news : News
info : Info
update : Update

camya avatar Dec 09 '18 14:12 camya

I think we would have to rehaul the entire format of inputting data here. What if I wanted to use the colon in my option labels?

red : Team 1: Red
blue : Team 2: Blue
green : Team 3: Green

lukecarbis avatar Dec 11 '18 05:12 lukecarbis

@RobStino @greenphp Any thoughts on a better format for select and multi select values?

lukecarbis avatar Apr 11 '19 02:04 lukecarbis

@lukecarbis My mind goes to a repeating row of two text inputs. The left for key and the right for value. I like the simple nature of what we currently have though, but if it doesn't work for our users... I'm perhaps interested in hearing back from people who are struggling with this first. I don't want to solve a problem that doesn't really exist.

RobStino avatar Apr 11 '19 03:04 RobStino