I have a TablePickerSynced that I’d like to filter the options for. I’ve got the element conditionally disabled based on the presence of a selection in another TablePickerSynced
:
<FormField label="Which table holds the Events/Bookings?">
<TablePickerSynced
globalConfigKey={GlobalConfigKeys.APPOINTMENTS_TABLE_ID}
onChange={() => apptCheckTablesAreNotSame()}
size="large"
maxWidth="350px"
disabled={!props.globalConfig.get(GlobalConfigKeys.PEOPLE_TABLE_ID)}
/>
</FormField>
…but I’d also like the Tables available to be picked in this second TablePickerSynced
to be filtered to only include those Tables to which the table selected in the first TablePickerSynced
(props.globalConfig.get(GlobalConfigKeys.PEOPLE_TABLE_ID)
) has a Linked Record relationship.
Is this possible? I don’t see anything in the documentation that would indicate that it is, but I know the FieldPicker
can at least disable certain options within the picker dropdown, so it seems like this kind of thing should be feasible.