initial-rose
initial-rose6mo ago

Form Inline Validation

I have three input fields in my form, based on the first two inputs. I need to send a request using those two input fields and then render a dropdown for the third field. Is there some example I can follow?
5 Replies
kapa.ai
kapa.ai6mo ago
Hi @ihate_1. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. The extracts provided do not contain a specific example of inline validation with a request based on the first two inputs and rendering a dropdown for the third field. However, Refine does provide a set of hooks to handle form state, validation, submission, autosave, and more. These hooks seamlessly integrate with popular UI libraries, making it easier to use their form components. You can find more information about this in the Refine documentation (https://refine.dev/docs/guides-concepts/general-concepts#forms-). For form validation, Refine uses Ant Design's Form component. You can make basic validations with Ant Design Form.Item rules property to the forms you have created with Refine. It also allows you to make custom validations that you want or need. You can find more about this in the Refine Custom Form Validation documentation (https://refine.dev/docs/examples/form/antd/custom-form-validation). For creating custom inputs, Ant Design enables us to create our own custom inputs within the Form.Item components. You can find more about this in the Refine Custom Inputs documentation (https://refine.dev/docs/examples/inputs/customInput). I recommend checking out these resources and adapting the examples to your specific needs. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai6mo ago
<@889506077895426060> kapa.ai is still learning and improving, please let us know how it did by reacting below
initial-rose
initial-rose6mo ago
@kapa.ai can you write the code for a sample.following my request above?
kapa.ai
kapa.ai6mo ago
Let me check the knowledge base for you. One moment! :books: ---------------------- I'm sorry, but I can't provide the help you're looking for. The information extracts provided do not contain a specific example or code snippet that matches your request. I recommend referring to the Refine documentation and examples for guidance on how to implement your specific use case. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai6mo ago
<@889506077895426060> kapa.ai is still learning and improving, please let us know how it did by reacting below