form-js icon indicating copy to clipboard operation
form-js copied to clipboard

Define expected behavior when no label is provided in 'values'-type formfields

Open Skaiir opened this issue 3 years ago • 0 comments

What should we do?

We should decide what the expected behavior should be when providing a 'values' type form field with a values definition that looks something like this:

{
   values: [{ value: 'myVal', label: null }, { value: 'myVal2' }]
}

That is to say, when no label is provided.

Why should we do it?

It would be worth figuring out the behavior we want here and agree so that we can implement it across all our values-type components at once, and keep the behavior consistent across the board.

Skaiir avatar Jul 29 '22 11:07 Skaiir