Hi ,
First of all sorry for my bad english level.
I have a project with primereact sakai template. I used primereact dropdown but I didn't custom error message for required attribute.
<Dropdown
name="unitId"
onChange={handleChange}
value={id}
options={units}
optionLabel="unitName"
optionValue="id"
filter
showClear
filterBy="unitName"
placeholder="Select a Unit"
required
/>
I am using required attribute as in this code example. When I want to submit the form with Submit button my page does not post ok, but I can't see the error message anywhere on the page.
How to create Dropdown required message
I suggest checking out the showcase for Form Validation examples: https://primefaces.org/primereact/formik/
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests