How to make, delete and edit repeatable components
I am using Strapi V4 with refine and ant design and I am trying to figure out what the best way to add, remove and edit a repeatable component.
It has 3 fields, one that lets you select a payment amount, 1 that lets you select a payment type and 1 that lets you select a date. I can populate existing data using populate but I need to be able to create new fields on the edit & create pages and can't seem to figure out how.
6 Replies
Hi @erekyu. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hmm, I don't know enough to give you a confident answer yet. However, you can refer to the refine documentation and blog posts for more information and examples:
- Refine Documentation: https://refine.dev/docs
- Refine Blog: https://refine.dev/blog
These resources might help you find the solution you're looking for.
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------Overview | refine
What is refine?
Blog | refine
A Docusaurus powered blog!
<@66380739771379712> kapa.ai is still learning and improving, please let us how it did by reacting below
wise-white•2y ago
I think it would be a new table inside the current table but not sure if there might be another way
automatic-azure•2y ago
I'm not quite understand what you trying to achieve.
why can you not use form ?
https://github.com/refinedev/refine/blob/next/examples/data-provider-strapi-v4/src/pages/posts/create.tsx#L36
could this be what you're looking for?https://ant.design/components/form#components-form-demo-dynamic-form-items
wise-white•2y ago
yes, i kept searching for a repeatable field no idea why i didn't think to look at nested forms I feel quite silly lol. ty!