Frontmatter
| id | 4161 |
| title | form.field.Checkbox: Required validation needed |
| state | Closed |
| labels | enhancement |
| assignees | [] |
| createdAt | Mar 2, 2023, 11:43 AM |
| updatedAt | Apr 24, 2023, 6:58 PM |
| githubUrl | https://github.com/neomjs/neo/issues/4161 |
| author | alberthashani |
| commentsCount | 6 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 24, 2023, 6:58 PM |
form.field.Checkbox: Required validation needed

some thoughts: we could pretty easily add a required_ config, as well as a validate() & isValid() method. these methods could add a neo-invalid css rule and we could e.g. add a red color.
adding an error message (label) would be a follow up ticket which requires more work => we would need to adjust the vdom structure to support it.

Nice, I think we would need the custom error message right away, so shall i include/define that in the description of this feature request or is it nessecary from your point of view to have them in sperate feature requests?

i would go for 2 tickets to keep the scope of each smaller :) a checkbox with a red background would be pretty obvious to be required i guess, but you never know.

Ok I’m with you, i will create another ticket for custom error messages as soon as this is closed.

work in progress:

@alberthashani @deniztoprak

done now. let us create a new ticket for groupRequired or similar (check 1+ items out of many)
(No description provided)