Skip to content

Edit page - change get and save resource URLs #4927

Closed Answered by omeraplak
w20k asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @w20k ,
We had previously discussed offering this as a built-in feature with the core team and had decided it was unnecessary. This is asked from time to time by the community, so perhaps adding it to the FAQ section would be a much better idea. If you want to do this, your PR will be warmly welcomed.

Here is how you can do it:

  1. Review this part found in Ant Design's useForm documentation, https://refine.dev/docs/api-reference/antd/hooks/form/useForm/#how-can-i-change-the-form-data-before-submitting-it-to-the-api. In this section, you can find how to change in the form data.
  2. Inside this function, call the useCustomMutation hook.
    const { formProps, saveButtonProps, onFinish } = us…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@w20k
Comment options

Answer selected by w20k
Comment options

You must be logged in to vote
5 replies
@omeraplak
Comment options

@w20k
Comment options

@omeraplak
Comment options

@w20k
Comment options

@w20k
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants