Reading other fields from an interface extension

Is there a way for the interface extension to read other fields of the item? I’d like one field to control some behaviours of another, e.g. collection could have a map and a drop-down limiting allowed shapes in the map.

I see that the component receives the collection name and item id, but, if I understand it correctly, I could only read the last saved value, and not the current one.

1 Like

You can use Vue’s provide/inject pattern to inject the form values:

import { inject } from 'vue';
const values = inject('values');

It’s definitely non-obvious, but I’ve used this a ton in my extensions. There’s also a way to emit updates to other fields from your interface extension.