validationrules Questions

5

Solved

I got a problem with validation rules with nested conditions. class StoreRequest extends Request { public function authorize(){ return true; } public function rules(){ return [ 'type_id' =&...
Jahdol asked 18/2, 2017 at 20:24

2

Solved

I am developing a Laravel application. What I am doing in my application is that I am trying to override the custom validation rule message. I have validation rules like this in the request class:...
Binder asked 30/5, 2019 at 19:5

4

Solved

I'm using rules in validation in Laravel, and am trying to check the number of characters in a number. This is my attempt: protected static $rules = [ 'zip_code' => 'required|size:5|int...
Marinara asked 10/2, 2015 at 23:26

6

Solved

I have received PHP/JS code from previous developer and I need to add number validation to a Mobile Number field. I already have the HTML validation in place but I need to add that if someone press...
Rosol asked 30/9, 2013 at 11:31

10

Solved

I have a page where a few textboxes cannot be empty before clicking a Save button. <TextBox... <TextBox.Text> <Binding Path ="LastName" UpdateSourceTrigger="PropertyChanged"> ...
Amp asked 23/10, 2008 at 19:13

1

Solved

Let's say i have an object composed of property_a and property_b, and when submitted have to receive at least one of those two properties. If the object were just one i could use the required_witho...
Accent asked 9/12, 2019 at 15:43

3

Solved

I have a model with a validation rule like: [['x'], 'integer'], [['x'], 'unique'], Now how can I add a rule like: x < 100 or something like x >= 100
Scalable asked 31/3, 2015 at 6:31

1

Solved

To validate the update of the e-mail of a user already registered I have the next function to exclude the "unique" rule for the current User: public function updateRules() { return [ 'name' =&gt...
Diagnostics asked 4/12, 2018 at 16:45

5

Solved

I am currently using the Form Validation class (on Codeigniter) and setting rules. It works like this with two parameters (codeigniter.com/user_guide/libraries/form_validation.html): $this->fo...

0

I am creating a business rule engine and planning to user NRules framework. https://github.com/NRules/NRules But I want to know if I can generate rule from database it self. I have a database tab...
Choirboy asked 28/12, 2015 at 10:14

3

Solved

I've got a few TextBoxes for input fields and a "Save" Button in my view. Two of the TextBoxes are required fields for saving, and I've set up a custom ValidationRule in the xaml for some visual fe...
Highspeed asked 22/10, 2014 at 17:23

2

Solved

This code works but I need it to basically do an If Else on the id field. If the id length is >0 then do not check name, zipcode as required. If the id is not > 0 then check name, zipcode, etc as r...

1

I'm looking for a solution and/or the rationality behind why a Binding instance is shared within a DataTemplate. This ultimately comes down to the fact that within a DataTemplate, there's seemingly...
Margaritamargarite asked 25/4, 2012 at 23:51

5

Solved

I have read a lot of Blog post on WPF Validation and on DataAnnotations. I was wondering if there is a clean way to use DataAnnotations as ValidationRules for my entity. So instead of having this ...
Moat asked 4/2, 2011 at 21:17

1

Solved

Given a validator extending AbstractValidator and implementing IValidator, I would like to get it's rules. There seems to be no way to do this?
Jade asked 11/3, 2013 at 10:25

3

Solved

I want to use the ValidationRules (and it's UI effects) on the textbox without actually binding anything to the textbox. I want to use the textbox for some input that doesn't bound to anything bu...
Stilbestrol asked 4/6, 2011 at 9:57

2

Solved

From my experience many validation frameworks in .NET allow you to validate a single field at a time for doing things like ensuring a field is a postal code or email address for instance. I usually...
Parvenu asked 13/2, 2010 at 18:4
1

© 2022 - 2024 — McMap. All rights reserved.