Disable/Un-disable Lookup field

Hi,

I have some cascading lookup fields. The final field can sometimes return more than one value from the lookup. Is it possible to detect if more than one value appears in the field and if it does, I want to un-disable the field so users can select their required choice?

Thank you!

Hello @DryChips,

You can get the number of items in the lookup field using the code:

fd.field('Lookup0').widget.dataSource.data().length