You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I have been playing around with the wizard and I want to have forms on each step and only allow (next/finish) when the form is valid.
Right now I am doing the following. Calling the checkStepValidity when all fields are populated. But not sure how I could toggle it back to invalid if a field is completed but then erased.
useEffect(() => {
if (
patient.firstName?.length > 0
) {
wizardRef.current?.checkStepValidity(0);
} else {
// set step to invalid
}
}, [patient]);
Is there currently any way to do this or could you recommend a better way?
The text was updated successfully, but these errors were encountered:
Hello,
So I have been playing around with the wizard and I want to have forms on each step and only allow (next/finish) when the form is valid.
Right now I am doing the following. Calling the
checkStepValidity
when all fields are populated. But not sure how I could toggle it back to invalid if a field is completed but then erased.Is there currently any way to do this or could you recommend a better way?
The text was updated successfully, but these errors were encountered: