Can You Show/Hide an Array Item’s “+ Add Item” Option?
Last updated: Aug 8, 2022
Hi, in Studio can one show/hide an array item’s “+ Add Item” option? I’d like to prevent shallow duplicates of an item. I know validation rules work after insertion, but maybe? there’s a way to control the list items when one clicks “+ Add Item”. If not, I assume Structure Builder can do it. Thanks!
Aug 8, 2022, 12:10 PM
! Are these references to documents? If so, you can use the
option (example here ). However, if they're objects you will need to use validation to check for duplicates since they can't be dynamically filtered in the schema. You could also create a custom input component.
Aug 8, 2022, 4:24 PM
They’re objects, so maybe I’ll look into custom components. Thanks!