Validation
You can validate any Jutro field using the stateMessages
prop. This prop is an object that contains the input state and messages that should be shown for that state. The following example shows how to use the prop with the Checkbox
component:
label="Label"
onChange={function noRefCheck(){}}
stateMessages={{
error: [
'This is error message'
]
}}
note
There are deprecated methods of validation for legacy components. Switch to a version of the documentation older than 10.0.x to view their docs.
Was this page helpful?