Closed dineshoctal closed 3 years ago
I need to add the textarea and validation, how can I achieve this.
`<textarea className="form-control" name="description" placeholder="Write here.." onChange={(e) => { setMessage(e.target.value); }} validators={["required", "maxStringLength: 200"]} errorMessages={[ "Please enter credit description", "Please enter less than 200 characters", ]}
`
please advise me.
Thanks,
@DineshOctal Hi, you can follow wiki example
I need to add the textarea and validation, how can I achieve this.
`<textarea className="form-control" name="description" placeholder="Write here.." onChange={(e) => { setMessage(e.target.value); }} validators={["required", "maxStringLength: 200"]} errorMessages={[ "Please enter credit description", "Please enter less than 200 characters", ]}
please advise me.
Thanks,