Thank you for the reply @sdirix , I have registered a custom renderer to auto populate a dropdown using another dropdown that’s working but I am able to access the value of one dropdown only. Here Iam able to access only city but not country
`export const ArrayTester = rankWith(1000, scopeEndsWith(“region”));
const countryOptions = [
{ label: “USA”, value: “US” },
{ label: “United Kingdon”, value: “UK” },
];
const regionOptions = {
US: [
{ label: “IOWA”, value: “IOWA” },
{ label: “Texas”, value: “TX” },
],
UK: [
{ label: “Bedford”, value: “Bedford” },
{ label: “Surrey”, value: “Surrey” },
],
};
const ArrayRenderer = (props) => {
console.log(“propps”,props)
const { visible } = props;
const [regions, setRegions] = useState();
const [country, setCountry] = useState();
const onCountryChanged = (path, value) => {
setCountry(value);
setRegions(regionOptions[value]);
};
console.log(“regions”,regions[0])
return (
<MaterialEnumControl
{...props}
label={"Country"}
options={countryOptions}
handleChange={onCountryChanged}
data={country}
/>
<MaterialEnumControl
{...props}
label={"Region"}
options={regions}
/>
</Hidden>
);
};
export default withJsonFormsControlProps(withJsonFormsEnumProps(ArrayRenderer));`

Please help me if I can sort this out
And also I have tried multiple ways Got stuck at some points please look into if you can help in any of them
Can I add any index to each item in a field of array type in order to access every record.
How to add validations to a custom renderer.
I have seen useJsonForms is used to get whole form data into a custom renderer but when I did that its returning empty object for useJsonForms().core.data.
I think I can sort all things if I got answer for any of the above.
Thankful for your understandable approaches.