ratty-blush
ratty-blush3y ago

It developed using json-server, you can find the repo here: https://github.com/typicode/json-server

It developed using json-server, you can find the repo here: https://github.com/typicode/json-server
GitHub
GitHub - typicode/json-server: Get a full fake REST API with zero c...
Get a full fake REST API with zero coding in less than 30 seconds (seriously) - GitHub - typicode/json-server: Get a full fake REST API with zero coding in less than 30 seconds (seriously)
13 Replies
correct-apricot
correct-apricot3y ago
any idea how I can catch onSubmit event for Create Page ?
<Form.Item
label="Tags"
name={["tags"]}
rules={[
{
required: true,
},
]}
initialValue={tags}
>
{tagsElement}
</Form.Item>
<Form.Item
label="Tags"
name={["tags"]}
rules={[
{
required: true,
},
]}
initialValue={tags}
>
{tagsElement}
</Form.Item>
I want to have a custom form item, where I am maintaing my own state, but once I click save I want to intercept create page save action and fill the form body with that state value
correct-apricot
correct-apricot3y ago
this is what I am trying to achieve but inside the Form.Item, is it possible ?
No description
correct-apricot
correct-apricot3y ago
I am able to display it but unable to catch the value, I just get the last Tag value and thats it, unable to have it as an array of values
No description
correct-apricot
correct-apricot3y ago
i dont if this is the right way but this is what I eneded up doing
No description
correct-apricot
correct-apricot3y ago
I added in a select tag but made it display none so this way the id tags is being assigned to this, but feels so wrong lol
genetic-orange
genetic-orange3y ago
@haribo_mushi Hi, did you try this ? https://refine.dev/docs/api-reference/antd/hooks/form/useForm/#how-can-i-change-the-form-data-before-submitting-it-to-the-api also, can you please open post on #ask-any-question section ? we can continue conversation on #ask-any-question
correct-apricot
correct-apricot3y ago
thanks i missed this, I will try this one out if it doesn't work then I will open a post on help thanks it works !
genetic-orange
genetic-orange3y ago
i'm glad to hear that 🙏
correct-apricot
correct-apricot3y ago
I was wondering, would refine be having shields.io badge ? I think that will be a good addition
correct-apricot
correct-apricot3y ago
u know something like this
No description
foreign-sapphire
foreign-sapphire3y ago
Hi How can i clone finefoods-client Project
ratty-blush
ratty-blushOP3y ago
Hi @saji, You can run below code: npm create refine-app@latest -- --example finefoods-antd
foreign-sapphire
foreign-sapphire3y ago
Thanks Hello Does Inferencer generate any model I want ? If i want to build Person model does it generate the crud by itself? CRUD** Does it export it as code where i can modify it ?

Did you find this page helpful?