I'm looking for the best approach to have a SelectItem display in a DynamicForm where its ValueMap (choices) are statically defined but the user's selected value will persist with the record associated with the dynamic form.
If I use a SelectItem type then I can set the ValueMap which takes care of the statically defined choices, but I don't get any control over the Item's placement on the form like I do when the field is declared as a FormItem (e.g. setColSpan ) which is important for the form as its quite extensive.
I've tried using setType("selectItem") on the FormItem but it doesn't work - at least not for me.
Any advice?
If I use a SelectItem type then I can set the ValueMap which takes care of the statically defined choices, but I don't get any control over the Item's placement on the form like I do when the field is declared as a FormItem (e.g. setColSpan ) which is important for the form as its quite extensive.
I've tried using setType("selectItem") on the FormItem but it doesn't work - at least not for me.
Any advice?
Comment