https://kotlinlang.org logo
#tornadofx
Title
# tornadofx
a

Ahmed Mourad

05/23/2020, 4:39 PM
Is there a way to manually trigger the validation for text fields?
There's a way to do it, or even trigger all validators at once which is exactly what I was looking for:
Copy code
viewModel.validationContext.validate(...)
In the spirit of TornadoFx, if you call
validate
without passing it any parameters, it validates all your fields, or you can pass it certain fields to validate.
13 Views