Closed thesame closed 2 years ago
I have encountered a similar case myself. What I did was create a custom field extending an object field, overriding the setValue, getValue, setup and a few other things. (For me I wanted a select field with an 'other' option, and when that was selected, another text field popped up).
You don't necessarily need a custom field though, its a bit of a learning curve. I'd try to start by making the field with an object, override the object template and then when you get the form data, parse it into whatever you needed.
I need to create a field that consists of multiple inputs. For example, I need a key-value pair where Key is Select input built with dynamically generated values and Value input is just a text input. Key and Value inputs should stack horizontally (in terms of bootstrap forms) with arbitrary content between them (for example, nice equality sign or arrow picture). I see two ways to achieve this: