Questions tagged [valdr]

valdr is an add-on to AngularJS which greatly simplifies validation thanks to its model centric approach.

16 questions
4
votes
1 answer

angularJS valdr + ui-select validation

I was googled on this issue but still can't find the right discussion about it. We are using valdr and ui select in a form ( angularJS app ) and we've faced the problem that the input that the ui-select renders won't get a name attribute, and since…
3
votes
4 answers

Is there a way for comparing dates on Valdr?

I'm using Valdr on my project and I need to validate that a date input "startDate" is before another date input "endDate".
2
votes
1 answer

Angular/Valdr - Add custom classes to valdr-form-group

Im pretty new to Angular. I'm using Valdr for validating my forms in Angular. I want to add some custom classes with my own css on a form-group when there is an error. In the documentation of Valdr I found this part about CSS to control visibility.…
Roy Philips
  • 342
  • 4
  • 12
2
votes
1 answer

How to dynamically assign valdr rules?

Forgive my minimal knowledge of AngularJS and valdr... I have an application using AngularJS where the ui is dynamically generated to edit some object with meta-data provided to determine the type to interpret the members of the object. I'm going to…
Felix
  • 1,346
  • 1
  • 12
  • 25
2
votes
0 answers

How to use valdr AngularJS form validation service with ng-repeat?

I've been checking out the valdr form validation service (http://netceteragroup.github.io/valdr/) as means of better organizing my form validation rules. It looks quite simple to use, except I think it has issue supporting ng-repeat blocks. This…
rwalker
  • 311
  • 2
  • 10
1
vote
0 answers

Valdr with UI-select required not updating

I am using ui-select with valdr. I used the following directive to patch the name attribute issue and the valdr for ui-select worked, but the when I change the ui-select value its not updating the message. That is the form element remains in…
winnyboy5
  • 1,486
  • 3
  • 22
  • 45
1
vote
2 answers

JSR 303 - defined size or null

I have following field with JSR-303 validation: @Size(min = 6, max = 6, message = "Field needs to be 6 characters") private String field; Requirement for the field is to be 6 characters or null. (I then use valdr-bean-validation…
FazoM
  • 4,777
  • 6
  • 43
  • 61
1
vote
2 answers

can we use valdr.addConstraint and addValidator function outside the config block ?

i am newly using valdr in angualrjs . i m making validation directive using valdr for my application. i don't want to write addconstaints and addvalidator functions with json inside app.config file. i want to write that part inside the directive…
bhaskarsd
  • 11
  • 1
1
vote
1 answer

Will valdr support angular 2?

I couldn't find anything in the valdr documentation about the support of the upcomming angular 2. Does anybody know if valdr is usable with angularJS 2?
hennr
  • 2,632
  • 2
  • 23
  • 26
1
vote
1 answer

Dynamic valdr-type

Would it be possible to have a dynamic valdr-type? I am trying to build a dynamic form based off of nested objects and valdr-type="{{constraint}}, for example, but is not working. Can valdr-type be dynamic or does it have to be set with…
user4462026
1
vote
1 answer

Bind validation of a control on keypress using Valdr module in AngularJS

I am using Valdr module to validate my form, it is working very well and validates the control content when i press tab, however I wanted to validate the control content while typing (keypress). Your help is highly appreciated.
0
votes
2 answers

Validate if greater then zero - using valdr-bean-validation

I would like to make sure that totalAmount is greater then 0. I have following code to in my Java bean: @NotNull(message = "Total amount must be entered") @Digits(integer = 8, fraction = 2, message = "Please enter a valid amount less than…
FazoM
  • 4,777
  • 6
  • 43
  • 61
0
votes
1 answer

Manually trigger validation with valdr (AngularJS)

i am using valdr (https://github.com/netceteragroup/valdr) to validate my form with Angular. Since it only shows feedback messages after the user has clicked into an input, i would also like to display them if the user clicks the submit button. Is…
springs
  • 1
  • 2
0
votes
0 answers

Errors in validation to validate file extension before uploading the file

I tried this custom validator to validate file extension of selected file. I use valdr-validation-plugin with AngularJS and have written this custom validation to validate the extension of the file which is to be uploaded. Generally value parameter…
kishor10d
  • 543
  • 6
  • 24
0
votes
2 answers

Building Valdr custom validator

I have been trying since to build a custom validator using Valdr AngularJs plugin with no success. What I want to archive is an input text that should receive date and time format like : dd/MM/yyyy hh:mm (12/04/2015 12:32:10) Based on Valdr…
1
2