Skip to main content

Questions tagged [knockout-validation]

A plugin for knockout.js for declarative, rule-based validation of models and properties.

knockout-validation
0 votes
0 answers
26 views

Form validation is not working using Knockout.js SPA

I have created a Single Page Application in which create three HTML Pages names: 1. Index.html (Master Page), 2. Home.html, and 3. Contact.html and also two JavaScript Pages: 1. Index.js (for Master ...
MANISH SHARMA's user avatar
0 votes
0 answers
83 views

Knockout Typescript bind action of dxValidator.validationRules.validationCallback for multiple values

I have 3 dxNumberBox max,min and average and a next button as : <div class="flex-row"> <div class="flex-item-left"> <div data-...
hedbisker's user avatar
  • 317
0 votes
1 answer
405 views

Custom Validation message is not showing up on the Page

I have a input field of type email on the form which I have to validate the email address entered and show the validation error message when the user tries to navigate to the next page. It just not ...
user4912134's user avatar
  • 1,033
1 vote
1 answer
150 views

Remove duplicates or distinction from array of objects by knockout.js

How to remove duplicates objects from an array by using Knockout.js var ticketgroups = [ {TicketGroup: TicketGroup1, SortOrder: 1}, {TicketGroup: TicketGroup1, SortOrder: 1}, {...
user3774591's user avatar
0 votes
1 answer
67 views

Knockout-Validation validationMessage postions css conflict

I am trying to validate a Knockout JS dynamic questions form: <form id="" action="" data-bind="foreach: Fields"> <!--ko if: $parent.HiddenElements()....
hncl's user avatar
  • 2,295
1 vote
0 answers
170 views

Radio Buttons inside a nested for each loop of html doesn't check

I have multiple for loops and each are being bind with relevant list of items. Example: Layer. revision. exposure. and each of these are repeated n number of times and they are looped in following way ...
Sushmitha N's user avatar
0 votes
0 answers
130 views

AJAX call from knockout.js function to controller action not setting server side view model properties

I have been following a pluralsight course in an attempt to learn how Client Side View Models can interact with server side controller actions. I have a basic view model with a couple of string ...
Stuart Helwig's user avatar
2 votes
0 answers
339 views

Required Field Validation error not displaying for fields added into Array

I am trying to add the fields in the form through Observable Array in the KnockoutJS to repeat the same section of fields. But the issue is the Required Field Validation errors are not displaying for ...
trx's user avatar
  • 2,147
0 votes
1 answer
225 views

How to validate specific child items using Knockout-Validation

I am using Knockout-Validation's sample and added 2 child collections which contain validation rules. var Item = function(id, name) { var self = this; self.id = ko.observable(id).extend({required: ...
KRob's user avatar
  • 389
0 votes
1 answer
64 views

Checkbox validation on select

I have the following: <tbody data-bind="foreach: { data: MenuItems, as: 'tableitem' }"> <tr> <td data-bind=&...
Mohammed Ismail's user avatar
0 votes
1 answer
58 views

Knockout Validation Custom rules are not working after upgrading jquery version from 2.1 to 3

I am using knockout 3.2 . I have a field on which a custom knockout rule is added which get its value from an ajax call. It was working fine with Jquery version 2.1. But when I upgraded the jquery ...
mukul garg's user avatar
0 votes
2 answers
1k views

Enable/Disable button using checkboxes

I need to enable/disable button if both checkboxes are checked. I want to do in knockout.js. I am still a beginner. I have found an example enable/disable button using checkbox but that is doing for 1 ...
Owais Ahmed's user avatar
  • 1,418
0 votes
2 answers
321 views

Multiple checkboxes state checked

I am using knockout Js. There are two checkboxes. If any checkbox is not checked then the submit button will be disabled. There might be cases where there will be 1 checkbox instead of 2 checkboxes. ...
Owais Ahmed's user avatar
  • 1,418
1 vote
1 answer
580 views

Change in observable array in side observable array not updating UI in knockout js

var subject = function (data) { self = this; self.subjectName = ko.observable(data ? data.subjectName : ""); self.subjectPassPercentage = ko.observable(data ? data....
Manish Sinha's user avatar
0 votes
0 answers
249 views

Knockout validation - to match starts with specific characters

I have to validate if an ID starts with a specific set of characters, followed by alphanumeric values. I am using knockout validation. I have the code here, var value_id = ko.observable('').extend(...
Jeya Suriya Muthumari's user avatar

15 30 50 per page
1
2 3 4 5
35