php Form Validation on a textarea

I recently switched a input form from a text to a textarea so that I could have multiple lines of text. The form is working fine except when I go to validate. If it is one line, there is no problem but when I enter text that wraps to the second line,...
more »

2017-06-18 19:06 (1) Answers

Regex validation for Hungarian names

I have made my regex name validation like this (for Hungarian names): /^([A-Z]{1}[a-z áéúőóüö.]{1,}){2,}$/ My only problem that is that it accepts more than just 1 space, which I shouldn't allow. Any idea how could i fix this? ...
more »

2017-06-18 16:06 (2) Answers

How to ensure certain format on property

I'm wondering if it's possible to describe a format, that an interface property should have. For example: interface User { age?: number, name: string, birthdate: string // should have format 'YYYY-MM-DD' } I read about decorators but it s...
more »

2017-06-18 12:06 (1) Answers

Making request to @Valid

I'm developping spring-boot application, I need to validate user information before checking other information. This is a snippet: @RequestMapping(value = "/create-user", method = RequestMethod.POST) public String ceateCustomer(@Valid @RequestBody ...
more »

2017-06-18 11:06 (1) Answers

.net disable jquery validate

I am using jquery validate on a .net aspx page. CausesValidation="false" on a linkbutton does not disable the validate. Linkbutton has OnClientClick set to "return $('form').valid;" Linkbutton is using bootstrap code. I need to disable the validati...
more »

2017-06-18 00:06 (0) Answers

Reactjs : Multiple Forms in tabs with validation

Tab structure which will have same component in both the tabs Component can add 2 fields at a time which are same whenever clicked on add Form validations should happen for each newly added form on click on the last form in last tab data from all the...
more »

2017-06-17 16:06 (0) Answers

Laravel 5 required_if validation always fails

Suppose I have a dropdown list district_code_c, one of its option is other, so when user select other, then system shows an input named as district_other_c and user type something, i have a validation rule like this: $present_fields_rules['district_...
more »

2017-06-17 11:06 (2) Answers

Email validation using PHP

I have a form for which i am trying to validate the email address. If the email address is incorrect i want a value of "Please type a valid email address." to be returned into the "email" input box on the form. What am i doing wrong? No validation is...
more »

2017-06-17 00:06 (2) Answers

validating jquery groups

I'm using the validation plugin found here (jqueryvalidation.org). I'm new to javascript so this is probably something simple (why I searched everywhere else first!). This is a form for credit card validation. As such, I have 2 select statements, ...
more »

2017-06-16 22:06 (0) Answers

How do I apply custom Validation on an array?

My problem is fairly complex and kind of difficult to explain with text, so I will try my best. I have three inputs, all as arrays, 'A' 'B' 'C'. I also have a checkbox input 'D' (not an array). Every element in A has to be required if the correspond...
more »

2017-06-16 20:06 (1) Answers

XML DTD entity validation error

In my xml file, I have the following lines for DTD entity validation: <!DOCTYPE production PUBLIC "XXXXX" "abc.dtd" [ <!ENTITY PQ0594 SYSTEM "PQ0594.tif" NDATA tif> <!ENTITY PQ0590 SYSTEM "PQ0590.tif" NDATA tif> <!ENTITY PQ1526 SYS...
more »

2017-06-16 20:06 (0) Answers

How to find 50 random rows for multiple Metrics?

We have scores for providers based on whether or not their patients are or are not in the numerator. In order to complete validation on if the patient is set (compliant or not compliant), I have been tasked with creating a report that randomly select...
more »

2017-06-16 18:06 (1) Answers

PHP Bitcoin validate from form

I want to validate Bitcoin address from form. If someone enter invalid address it should echo "Please enter valid address". If address is valid, script should add this to database. I have this code. I only need validate function. <form meth...
more »

2017-06-16 16:06 (1) Answers

vee-validator doesn't work in Internet Explorer

Why doesn't this code work in Internet Explorer? It works perfectly in other browsers. But this Microsoft thing is making me crazy. this.$validator.validateAll().then(() => { var self = this; var toSave = self.message; $.ajax({ type: "P...
more »

2017-06-16 12:06 (1) Answers

Angular: what does myForm.errors stand for?

I would like to get all errors from a form. I tried to use the live example that came with Angular documentation, and I modified it adding required to the first field: createForm() { this.heroForm = this.fb.group({ name: ['', Validators....
more »

2017-06-16 12:06 (1) Answers

Javascrip Captcha Code is not Working

I have a validation Form using Javascript. It must validate the name, email and captcha. But through my validation function, the name and email are validated but the captcha is not validated after the onclick of the submit button. The following fun...
more »

2017-06-16 11:06 (1) Answers