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
With formsy-react I have a reset button that allows me to clear the login form. If the user enters erroneous data, I use data-spIf="form.error" to display a semantic-ui-react error element. Here is my code:
My goal is when you hit the reset button, the error message goes away just as the form fields clear. With semantic-ui-react's message element you can toggle the "visible" and "hidden" classes to make the element appear:
@natdouglas Doesn't look like you can currently do this, but the linked PR adds spResetErrors/data-spResetErrors, which you will be able to put on a button to reset the form state.
Please note this is a question and I'm new to stormpath. I have a custom login form using:
With formsy-react I have a reset button that allows me to clear the login form. If the user enters erroneous data, I use
data-spIf="form.error"
to display a semantic-ui-react error element. Here is my code:This is what my login form looks like.
This is how the error message appears:
My goal is when you hit the reset button, the error message goes away just as the form fields clear. With semantic-ui-react's message element you can toggle the "visible" and "hidden" classes to make the element appear:
I tried to add the visible and hidden classes, but "data-spIf="form.error"" doesn't seem to reset itself. Any ideas? All help is appreciated.
The text was updated successfully, but these errors were encountered: