block-lab
block-lab copied to clipboard
Select control: Problem with spaces between "key : value" of choices
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
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
@RobStino @greenphp Any thoughts on a better format for select and multi select values?
@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.