Knockout-Contrib / Knockout-Contrib/Knockout-Validation

Changing validation rules on the fly

Open
#49 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

todo
Dominant language
JavaScript
Stars
1k
Forks
366
PR merge metrics
No merged PRs in 30d

Description

I'm trying to update the validation rules of some fields that depend on the values of others on the fly, with no success. Sample code is at http://jsfiddle.net/2vfaV/3/
"deneme" is the main field and validation of "bagimli" depends on the value of deneme. How can i update the validation rule of bagimli?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the dependent-field case in the linked JSFiddle, where bagimli validation depends on deneme. Trace how validation rules are assigned and whether changing deneme can update bagimli's rule; done means the dependent validation changes correctly at runtime. The issue names no repository files or tests, so those would need to be located first.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.