I have one TextField and PrimaryButton in my form.
On button click i want to validate textfield.If there is no value then fire requiredfield validation on button click and display message same as display on onGetErrorMessage event.
I know validation is fire onBlur event but i want to fire validation on button click.
How can i do it?
First you have to use
refs
to yourTextField
Now you can set
onGetErrorMessage
on click usingrefs
Update 1: Check out this code snippet