knockout-validation Questions

3

Solved

I'm using MVC, Knockout, and Knockout Validation to validate my view model. I'm running into an issue where the validation for view model properties are firing immediately upon loading. In other w...
Philipson asked 3/12, 2012 at 20:27

2

Solved

I am trying to use knockout validation lib to validate an array of objects. It is not straightforward to me how to form a validation group for an array of observables. The only way I managed to mak...
Ridenhour asked 7/6, 2012 at 17:7

1

Solved

I have a knockout form that is comprised of 2 parts. When the first part is being filled out the second part is hidden. Upon completing the first part and clicking "Continue" the first part is then...
Talton asked 16/10, 2013 at 1:43

2

Solved

I have a view model as such: var prop1 = ko.observable().extend{ required: true }, prop2 = ko.observable().extend{ required: true }; var validation = ko.validatedObservable([prop1, prop2]); fun...
Fernyak asked 29/7, 2013 at 17:38

1

Solved

Currently the Knockout-Validation plugin automatically add this HTML element to my web page: <span class="validationMessage">This field is required.</span> I want to change the "Thi...
Muldoon asked 18/9, 2013 at 12:45

1

Solved

I am using knockout validation plugin and its working fine but i have a little problem , I want to make the validation span a little but more prominent by using css , and i only want to insert the ...
Bartonbartosch asked 27/8, 2013 at 7:3

2

Solved

I am going to define my model in require js and i need knockout and knockout validation plugin in my module and also jquery . define(["knockout","jquery","knockout.validation"], function (ko,$,val...
Chevrotain asked 6/8, 2013 at 6:4

1

Solved

I'm using Knockout Validation, and when I use it to validate radio button groups, the validation error message appears next to every radio button. I would like it to display in just one location. P...
Dammar asked 17/6, 2013 at 16:22

1

Solved

Based on the following, how exactly do I setup the callback to display a custom error message instead of the default message? ko.validation.rules['exampleAsync'] = { async: true, // the flag that...
Breastwork asked 26/9, 2012 at 23:17

2

Solved

Looking for a sanity check here. I've recently started learning knockout, and have been instructed to convert an existing multi-step form. The basic idea is to validate each step before allowing t...
Erelia asked 23/5, 2013 at 19:15

2

Solved

I am using Knockout Validation to validate a field in an array. It will display the error message, but I cannot get isValid() or ko.validation.group() to work. I need one of these to handle the sub...
Horn asked 26/10, 2012 at 19:24

2

Solved

Does the Knockout validation plugin have any option to apply the error class to the parent or parent's-parent of the input in error? If not can anybody suggest an approach to modify knockout valida...
Alpine asked 1/4, 2013 at 7:8

1

Solved

I'm trying to get Knockout Validation running on my Breeze.js entities but not having much luck. So currently I'm just trying to get a very basic test working to confirm the approach should work ...
Topless asked 1/4, 2013 at 0:14

1

Solved

Let's say I have: self.UserName = ko.observable("").extend({ required: true }).extend({ pattern: '[\S]' }); I'm trying to do something like (I've tried a few variations): self.UserName = ko.obs...
Carnivorous asked 27/3, 2013 at 11:4

1

Solved

Is is possible to see if just one property is valid in the knockout-validation plugin? I could not see any reference to it in the documentation, only the ability to see if the whole model is valid...
Ahouh asked 8/2, 2013 at 16:23

1

Solved

I have following attributes in my viewmodel which use knockout validation,one of them is custom validation to check password match. model.Password = ko.observable() .extend({ required: { message:...
Pomerania asked 30/1, 2013 at 10:15

1

Solved

I've not used Knockout Validation and I'm trying to get a feel for what can be done with it. I'm trying to figure out if it is possible to display an icon rather than an error message to the righ...
Incudes asked 3/1, 2013 at 20:49

1

Solved

I am trying to experiment and see if there are any clever solutions for creating custom validators that can be abstracted for neatness and reuse. In the jsfiddle below, I just put together a simpl...
Stellate asked 28/11, 2012 at 17:17

1

Solved

I have ko.observableArrays with validation on the items. The user can mark a item as deleted. When it is marked as deleted, I need to disable validation on that item. How do you dynamically disabl...
Anaya asked 15/11, 2012 at 14:54

1

Solved

What is the difference in ko.validation.group and ko.validatedObservable? Are there particular situations when I should use one over the other?
Alexandrite asked 24/10, 2012 at 20:17

1

Solved

This seems to be a common approach to sanitizing/validating/formatting data with knockout when binding to an input field, it creates a reusable custom binding that uses a computed observable. It ba...
Bracelet asked 28/9, 2012 at 16:2

1

Solved

We're using Knockout.js and the Knockout-validation plugin. When a user returns to a page that has validation errors, we want the error messages to display. Does anyone know if it's possible to tri...
Fractionize asked 23/8, 2012 at 18:37

1

Solved

I want to add a CSS Class to a select element in my view, my view model has a property which I've extended using Knockout-Validation: self.selectedRootCause = ko.observable().extend({ required: t...
Ism asked 17/8, 2012 at 11:40

1

Solved

I am trying to use KnockoutValidation with conditional statements. See code below: self.transactionType = ko.observable('Option1'); self.ConditionalField = ko.observable().extend({ required: tru...
Sopping asked 31/7, 2012 at 11:1

© 2022 - 2024 — McMap. All rights reserved.