All Questions
Tagged with knockout.js knockout-validation
475
questions
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 ...
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-...
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 ...
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},
{...
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()....
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
...
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 ...
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 ...
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: ...
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=&...
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 ...
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 ...
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. ...
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....
1
vote
1
answer
481
views
ko.observable() trim ending whitespace
I have an HTML text input called hours that is verified as a number through a knockout extender. If the user entering the hours has any whitespace after the number they enter, I would like to simply ...