Comments (6)
Hi @mungpara , thanks for your coment
Do you have any exemple of a HTML form that i can write the exemple on top of I would like something with a lot of complex rules to show most of the functionalities.
For now i haven't found any good enought idea I'd be greatful if you can help me with this
🙏
from forgjs.
I'm using laravel
<form method="POST" action="{{ route('login') }}">
@csrf
<div class="form-group row">
<label for="email"
class="col-sm-4 col-form-label text-md-right">E-Mail Address</label>
<div class="col-md-6">
<input id="email" type="email"
class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}"
name="email" value="{{ old('email') }}" required autofocus>
@if ($errors->has('email'))
<span class="invalid-feedback">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group row">
<label for="password"
class="col-md-4 col-form-label text-md-right">Password</label>
<div class="col-md-6">
<input id="password" type="password"
class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}"
name="password" required>
@if ($errors->has('password'))
<span class="invalid-feedback">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
</div>
<div class="form-group row">
<div class="col-md-6 offset-md-4">
<div class="checkbox">
<label>
<input type="checkbox"
name="remember" {{ old('remember') ? 'checked' : '' }}> Remember Me
</label>
</div>
</div>
</div>
<div class="form-group row mb-0">
<div class="col-md-8 offset-md-4">
<button type="submit" class="btn btn-primary">
Login
</button>
<a class="btn btn-link" href="{{ route('password.request') }}">
Forgot Your Password?
</a>
</div>
</div>
</form>
from forgjs.
Hey you are allready using laravel (PHP) as backend this lib is oriented for node js (Javascript)
from forgjs.
but i need client side validation
from forgjs.
Oh i havent made it client side friendly im still using require which is not undestood by all browsers i have to put in place somthing like babel
from forgjs.
Hi @mungpara, i finaly did it sorry it took some time check the example page hope this helps
from forgjs.
Related Issues (20)
- Type boolean? HOT 4
- Error message as fucntions HOT 10
- Support for validating Nested Objects HOT 1
- The equal value of rule HOT 3
- allowed fields HOT 9
- Validator.getErrors() HOT 5
- throw errors HOT 1
- example in README fails due to typos HOT 1
- errorMessages is empty array when validation fails due to unexpected field HOT 4
- Duplicate error messages when check for multiple types. HOT 2
- Validator.getErrors() throws an error on undefined fields
- changing the order of the rule properties causes an error
- Validating a null property will cause an error HOT 1
- Validating an undefined property will cause an error HOT 1
- create-react-app + forgJS HOT 11
- # doc and more doc
- Optional property to support "empty" values HOT 1
- Validating an empty string with notEmpty=false returns false HOT 7
- Incorrect error message returned on nested array rules HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forgjs.