Questions tagged [ember-validations]
16 questions
2
votes
0 answers
Ember Validations: Custom Validator Setup
I'm using Ember 2.3 and DockYard's ember-validations version "2.0.0-alpha.4". I'm using POD structure on my project.
No matter with predefined validations but I'm facing with injection problems while using custom validators.
As mentioned in…

ykaragol
- 6,139
- 3
- 29
- 56
2
votes
1 answer
Ember-Validation Issue w/ Ember CLI & Ember Data
I'm attempting to implement form validation on a new Contact in my app using the ember-validations library. I'm currently using Ember Data with fixtures, and I've opted to place the validations in the model like the example in this video. I've been…

Sam Lindstrom
- 59
- 1
- 12
1
vote
1 answer
Disable/Enable form submit button with ember validations status
I am adding form validations using "ember-validations" plugin. I am able to do inline validations, but I need to disable/enable button based on the validation status.
Component.js
export default Ember.Component.extend(EmberValidations,…

Manu Benjamin
- 987
- 9
- 24
1
vote
1 answer
emberjs mixin vs extend
I am thinking of using dockyard validations in my project
I have options as to how to use the Validations-Mixin from dockyard
Approach 1 to have a BaseController which will mixin this Validations-Mixin and get the functionality in all…

PCB
- 638
- 1
- 11
- 22
1
vote
0 answers
How to achieve dirty or pristine checking on ember forms
I often have to show validation icons on forms when using ember. However when using ember validations there is immediate feedback on if the form is valid. However I do not want to display the icons until at least the user has attempted to fill out a…

SuperUberDuper
- 9,242
- 9
- 39
- 72
1
vote
2 answers
Ember - Issue with class binding within helper
We upgraded to Ember 1.11.1 and Ember-validations 2.0.0-alpha.3.
Controller
export default Ember.Controller.extend(EmberValidations.Mixin, {
canValidate: true,
validationModel: Ember.computed.alias("model"),
validations: {
…

RunLoop
- 20,288
- 21
- 96
- 151
1
vote
2 answers
Better way to use same ember validation rules between Add and Edit controller
I'm using ember-validations and what is in Ember the right way to use the same validation rules between Add and Edit controller?
Doing this it is not the DRY way
App.UsersAddUserController.reopen(Ember.Validations.Mixin, {
validations: {
…

Massimiliano Marini
- 499
- 1
- 6
- 16
0
votes
2 answers
Compare two date in ember
I Want to put validation of end date should be max or equal from effective date if end date is there
effectiveDate: validator('presence', {
presence: true,
message: 'Please enter a valid value'
}),
endDate: validator('presence', {
value(model,…

Amit Engineer
- 27
- 8
0
votes
0 answers
Setup for ember-cp-validations
I'm trying to integrate ember-cp-validations to my project, so far now the code runs k but when i try to run "validate" methods i receive this error
Uncaught TypeError: Validator.getDependentsFor is not a function
I tracked down the error to this…

brayancastrop
- 381
- 5
- 17
0
votes
1 answer
How to remove/reset ember validation in form
I have a form inside a modal, that form allows user to update each model feild and I'm also using ember-validations to validate them, but then after successful saving or when a user closes/cancel the modal the form element still contain the class…

r-r
- 307
- 2
- 15
0
votes
2 answers
Component validation Ember-Validations
I am trying to validate a field in a single component using ember-validations but giving the possibility of passing a validations object to the component instead of hardcoding it inside. This code:
EditDefaultPropertyComponent =…

Urco
- 365
- 3
- 14
0
votes
1 answer
Ember form validation
I'm kind of new to Ember and I'm on something that should be quite simple. Just trying to validate a form actually.
Using ember-forms and ember-validations.
Here is the part of the structure, I'll be quite exhaustive so you can get to the point but…

Cohars
- 3,822
- 1
- 29
- 50
0
votes
1 answer
Can I use Ember-cli ember-validations release 0.0.0
https://github.com/dockyard/ember-validations/releases
Currently we have only alpha releases and Since 2.0.0 is not out which might take time as I see there are blocker issues for the release.
I am not sure if I can use 0.0.0 will it have any…

PCB
- 638
- 1
- 11
- 22
0
votes
1 answer
Could not find the "presence" validator with Ember Validations addon
I'm trying to use the Ember Validations addon and I can't get it working. In the Chrome console, I see: WARNING: Could not find the "presence" validator.
Here is my model:
import Ember from 'ember';
import DS from 'ember-data';
import…

Animal Rights
- 9,107
- 6
- 28
- 40
0
votes
1 answer
How to render the valid state of a property that is validated by EmberValidations
I've got a validation like this:
import Ember from 'ember';
import EmberValidations from 'ember-validations';
export default Ember.Controller.extend(EmberValidations, {
validations: {
age: {
presence: {message: 'Enter your age'}
}
…

SuperUberDuper
- 9,242
- 9
- 39
- 72