use-modal-form-success

how to change success notification message in useModalForm hook ?
4 Replies
Omer
Omer2y ago
Hey @coops8 , Which form library are you using? Antd, react-hook-form, etc.
passive-yellow
passive-yellow2y ago
react antd
Omer
Omer2y ago
You can override with successNotification property
useModalForm({
successNotification: {
message: "Custom notification",
type: "success",
}
})
useModalForm({
successNotification: {
message: "Custom notification",
type: "success",
}
})
https://refine.dev/docs/api-reference/antd/hooks/form/useForm/#properties
passive-yellow
passive-yellow2y ago
Thanks @Omer