Intercept Before Create
Hello! I need to manipulate some form data before sending to the server, there's and hook/middleware/action to intercepet the form action and act before?
Thanks!
4 Replies
foreign-sapphire•2y ago
Hi @fatrex, Do you you use
@pankod/refine-react-hook-form
?
if you, u can use this example:
https://stackblitz.com/edit/refinedev-refine-cutjm6?file=src/pages/posts/create.tsx
dependent-tan•2y ago
Thanks @alicanerdurmaz ! Sorry I forgot to mention that actualluy I'm using
useForm
from antd. Maybe there's something similatforeign-sapphire•2y ago
dependent-tan•2y ago
onFinish
! Thanks 😄