Disabling Array Item's Panel Options (Duplicate, Add Item Before/After) #4493
Unanswered
maximilian-zimmerer
asked this question in
Sanity Studio Support
Replies: 3 comments 2 replies
-
@maximilian-zimmerer Did you ever figure this out? I'm trying to do the exact same thing. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@maximilian-zimmerer Any update? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@maximilian-zimmerer @troymcginnis @joenemec
and
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I'm currently working on a custom input component for an array field, which limits the user to adding no more than a single item by disabling the "Add Item" button.
I successfully implemented this functionality following this template.
Once an array item has been added, is it possible to remove the following actions from its options panel?
Although I'd like to retain the option to delete the array item, all other actions would allow users to add new items to the array, which I intend to avoid.
Thank you in advance, I appreciate the help 🙏
My code for the custom input component and its implementation in a schema:
projectCover.tsx (Custom Input Component)
project.ts (Project Schema)
Beta Was this translation helpful? Give feedback.
All reactions