In the screencast attached I demonstrate a possible solution on how to deal with advanced options at the level of one value inside a field in a form.
There are two concepts:
Alternative widgets:
When multiple widgets are applicable for a field value it is possible to switch to a different widget. For example when the field did not specify that it is single line or multi line, it is possible to switch between textfield and textarea.
Complete alternative configurations:
In SHACL it is possible to say that an address must be a piece of text or it must be a couple of fields, house number, street, city etc.
In this case we are not just switching the widget, we are choosing an alternative way to save the data.
The difference between these two options is that the first one does not change how the data that will be saved.
The second one does, there it says something about how the data will be stored.
Questions:
- Should we bundle this in one UI component?
- How do you like the current display? This is targeted at power users, in simple use cases this is not shown as it only shows when it is configured in a more complex way.
- Do you have suggestions how this can be made easier / simpler?
In the screencast attached I demonstrate a possible solution on how to deal with advanced options at the level of one value inside a field in a form.
There are two concepts:
Alternative widgets:
When multiple widgets are applicable for a field value it is possible to switch to a different widget. For example when the field did not specify that it is single line or multi line, it is possible to switch between textfield and textarea.
Complete alternative configurations:
In SHACL it is possible to say that an address must be a piece of text or it must be a couple of fields, house number, street, city etc.
In this case we are not just switching the widget, we are choosing an alternative way to save the data.
The difference between these two options is that the first one does not change how the data that will be saved.
The second one does, there it says something about how the data will be stored.
Questions: