Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Get input value in error messages (Custom Validation) #654

Open
localnetwork opened this issue Apr 5, 2019 · 1 comment
Open

Get input value in error messages (Custom Validation) #654

localnetwork opened this issue Apr 5, 2019 · 1 comment

Comments

@localnetwork
Copy link

I want to get the value of the input if the input value doesn't follow the format of the pattern.

Example:

@localnetwork
Copy link
Author

localnetwork commented Apr 5, 2019

<input type="email" name="email" class="form-control" value="{{ old('email') }}" placeholder="Email*" pattern="^[\w]{1,}[\w.+-]{0,}@[\w-]{2,}([.][a-zA-Z]{2,}|[.][\w-]{2,}[.][a-zA-Z]{2,})$" data-error-pattern="(input-value) is incomplete" required />

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant