Skip to content

Show error message for hidden field #298

Answered by edmundhung
martialanouman asked this question in Q&A
Discussion options

You must be logged in to vote

Conform utilizes Constraint Validation APIs such as setCustomValidity to propagate the error messages at the moment. But the element might be barred from constraint validation on certain conditions. For example, the browser does not report error from disabled or hidden type input which is the issue you had.

If you have control over the input element, please use <input hidden> instead.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@martialanouman
Comment options

@martialanouman
Comment options

Answer selected by martialanouman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants