FormViewModel Validation for Individual Form Fields #530
-
I am learning Stacked Architecture and working with the form generator. I see that in the FormViewModel class there is a single showValidation property and a single validationMessage property, which means that you can only have one validation message showing using setValidationMessage "out of the box". What would be the best way to have validation for each individual form field displaying under each field? Edit: What seems to work is something like this but let me know what I should be doing. Edit 2: I also have the use case where I want one (or more) of the FormTextFields to be readonly, and set that as a result of a calculation relying on the other fields, like in a calculator app, but it seems that the automatically generated stuff does not have a setter. Edit 3: oh, looks like the answer to this is here: #382
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This has been implemented and is documented here |
Beta Was this translation helpful? Give feedback.
This has been implemented and is documented here