form-js
form-js copied to clipboard
Define expected behavior when no label is provided in 'values'-type formfields
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.