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
refsto yourTextFieldNow you can set
onGetErrorMessageon click usingrefsUpdate 1: Check out this code snippet