#Form validate

9 messages · Page 1 of 1 (latest)

jagged crest
#

does form.validate() or form.validateField() work similar to form.initialize()? I'm fetching form data and initializing it afterwards. But validating field using form.validateField doesn't seem to work. Specifically, i want to validate all of the input fields so that any matched values between all the inputs should trigger the error for the input fields. thanks

dusk apex
#

I did not get the question

jagged crest
#

basically i want to add validations after creating the form , not inside useForm. is it possible?

dusk apex
jagged crest
#

form = useForm()

#

we can initialize it after declaration. im asking if a similar thing possible with validations

dusk apex
jagged crest
#

i need to use field names here, but i do not know them beforehand. i fetch form data and then i use form.initialize() inside useEffect to populate the fields.

dusk apex