Hi,
I'm currently using an Object field within a JSON form to allow adding multiple sub-items using the same form. The JSON form is set up with an input data that looks something like:
{ "prop1": "", "prop2": "", "subItems": [ { "category": "fruit", "item": "apple" }, { "category": "vegetable", "item": "" }, { "category": "", "item": "" } ] }
I've run into trouble trying to filter down the options in a select field using the input to another select field within one of the sub items.
The root of the issue is that I can't seem to find a way to reference the current sub-item within the array. For example, if I feed the above code into a JSON form and want to filter down the available options for "item" based on the selection for "category", I can't figure out a way to do this because I can't see a way to figure out that the selected "category" for the current sub item is e.g. "vegetable".
Is there a way to access the index of the current item in a list in the Object field within a JSON form?