Group argument in validation is null when calling 'setRules'
See original GitHub issueHi,
I have an issue, after update to latest version of this plugin, with setting rules.
After declare and fill with filters is ok, but the problem is when I just call :
$('#ruleGenerator1').queryBuilder('setRules', {"condition":"AND","rules":[{"id":"8","field":"8","operator":"greater","value":["1"],"not":false}]});
then in console
Any ideas what I’m doing wrong or how to fix it?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Why does set_rules() method in CodeIgniter give error?
It seems that the Form_validation library doesn't load where you placed it. I'll suggest you place it in your class construct or just ......
Read more >Validation — CodeIgniter 4.2.11 documentation - GitHub Pages
Both the setRule() and setRules() methods can accept an array of custom messages that will be used as errors specific to each field...
Read more >The Data Validation Cookbook
The first argument of exists_one() is a rule that has to be checked in every group indicated by the by argument. The output...
Read more >Form Validation — CodeIgniter 3.1.13 documentation
Using a text editor, create a controller called Form.php. In it, place this code and save ... To set validation rules you will...
Read more >Chapter 5. Grouping constraints - Red Hat on GitHub
The last validate() call finally shows that all constraints are passing by validating against all defined groups. 5.2. Defining group sequences. By default, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Don’t you have a listener tha call “getRules” on the “rulesChanged” event ? You must disable it when calling “setRules”.
Is this issue fixed??? I have some trouble. Help me please!!!. Greeting.