We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi team , for conditional rendering fields how can i use simple-react-validator ?
{application?.isListed === 'Y' ? <TextField name='nameOfListed' value={application?.nameOfListed} onChange={onChange} onBlur={simpleValidator.current.showMessageFor('nameOfListed')} />
{simpleValidator.current.message('nameOfListed', application?.nameOfListed, 'required')}
: ''}
issue is when i change application?.isListed to 'N' , the field hidden , but validation error exists on validator.current.getErrorMessages()
@stuyam
The text was updated successfully, but these errors were encountered:
No branches or pull requests
hi team ,
for conditional rendering fields how can i use simple-react-validator ?
{application?.isListed === 'Y' ?
<TextField
name='nameOfListed'
value={application?.nameOfListed}
onChange={onChange}
onBlur={simpleValidator.current.showMessageFor('nameOfListed')} />
{simpleValidator.current.message('nameOfListed', application?.nameOfListed, 'required')}
: ''}
issue is when i change application?.isListed to 'N' , the field hidden , but validation error exists on validator.current.getErrorMessages()
@stuyam
The text was updated successfully, but these errors were encountered: