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
where foo is a function called at validation time, which return a string, so when it validates it creates a customized prompt? Picture something like "The email [email protected] is already taken". Currently trying that fails with the error prompt.search is not a function because of the line:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.
Would it be possible to define rules like this:
where
foo
is a function called at validation time, which return a string, so when it validates it creates a customized prompt? Picture something like"The email [email protected] is already taken"
. Currently trying that fails with the errorprompt.search is not a function
because of the line:so maybe in the previous line:
we could try calling rule.prompt()? Would that work?
The text was updated successfully, but these errors were encountered: