Knockout-Contrib / Knockout-Contrib/Knockout-Validation
Changing validation rules on the fly
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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