Closed daniel-p-tech closed 3 years ago
@daniel-p-tech thanks for contacting us.
You can grab a reference to the component with @ref=_form
and then do _form.EditContext.Validate()
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes.
See our Issue Management Policies for more information.
Hi,
Is it possible to somehow manually trigger validation from a different component than the component hosting
EditForm
? Please refer to the following snippet.I'm trying to implement a simple wizard that consists of several tabs. Each tab has its own
EditForm
. When user clicks theNext
button which is in theNavigation
component (footer of a B5 card), I need to validate an active tab'sEditForm
before moving to the next step. Acquiring reference toEditForm
object does not provide any public methods that I could call. I don't want to have a copy ofNext
button in each tab for various reasons (this is going to be part of a much more complex UI where such solution is not an option).Thank you.