vicious-gold
vicious-gold15mo ago

Use modal form to populate an array in the current record

Hello all, I need some help here. I'm trying to implement modal form in a project I'm working on with Refine v4. I followed the tutorial on https://github.com/refinedev/refine/tree/next/examples/form-mantine-use-modal-form, however, it seems the form is defaulted to standard CRUD actions, but I intend to use it to populate an array in the current record, I will be grateful if someone can point me right on how to get this done. Many thanks. I'm very new to this though.
4 Replies
kapa.ai
kapa.ai15mo ago
Hey @kataiwo2023! I'm the kapa.ai support bot. I've searched through the docs to try to answer your question. :wave:
kapa.ai
kapa.ai15mo ago
---------------------- Hmm, I don't know enough to give you a confident answer yet. However, you can refer to the useModalForm documentation (https://refine.dev/docs/api-reference/mantine/hooks/form/useModalForm/) and the example source code (https://github.com/refinedev/refine/tree/master/examples/form-mantine-use-modal-form) for more information on how to use the useModalForm hook with Mantine. ----------------------
useModalForm | refine
useModalForm hook also allows you to manage a form inside a modal component. It provides some useful methods to handle the form modal.
GitHub
refine/examples/form-mantine-use-modal-form at master · refinedev/r...
Build your React-based CRUD applications, without constraints. - refine/examples/form-mantine-use-modal-form at master · refinedev/refine
kapa.ai
kapa.ai15mo ago
<@1085267315102335057> kapa.ai is still learning and improving, please let us how it did by reacting below
yappiest-sapphire
yappiest-sapphire15mo ago
Hey @kataiwo2023, You can directly use Modal of your UI framework. You don't need to use refine hooks if you don't have mutation or query.