Symfony Validation with Data-Transformers

I have a form for a Product entity and I'm putting tags inside it. I followed the documentation and used a data-transformer : the user enter a space-separated string which is exploded into a Tag collection. I now want to validate the string that i...
more »

2017-01-19 13:01 (1) Answers

Using repository inside a form request on Laravel

So I find myself creating form request to validate the request that has been posted from a form. And sometimes it gets too complex that Laravel's Validation Rules can't help, so I make another validation in the data service (which is imported in the ...
more »

2017-01-19 13:01 (1) Answers

form validation not performed, spring boot

Perhaps I'm missing something little and stupid. However i have a form with 6 checkboxes, you can check at max 4 of those checkboxes at the same time and this is inside the validate method of the validator. My validator class is the following: @Comp...
more »

2017-01-19 11:01 (1) Answers

Django 2.7 Rest API Validation Request

I use Django 2.7 to build Rest API application, and having problem to validate/clean the request data from client for get detail transaction (Not Save/update). for example the request data trx_no cannot less than 5 char length. where's the validation...
more »

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

Ignore enter key when inputting char

I'm trying to validate a simple input of a char, but if the user presses enter without typing in a char, it simply prints a blank line in the console until characters are entered. I'd like to accept the enter key as an invalid input and proceed to my...
more »

2017-01-19 01:01 (1) Answers

Rendering a directive inside ngMessage

I'm unable to get the character count of an input using the following: <input type="text" ng-model="comments" ng-trim="false" maxlength="4500" class="input" ng-minlength="100" ng-maxlength="4500" required ng-required="true"> <div cl...
more »

2017-01-18 22:01 (0) Answers

Form Validation with Semantic-UI-React

I am using the official Semantic UI React components to create a web application. I have a form on my sign up page, which contains an email field, a password field, and a confirm password field. import {Component} from 'react'; import {Button, Form,...
more »

2017-01-18 17:01 (0) Answers

Skip hibernate validation temporarily

I am performing serverside validation in my project. I am using spring and hibernate for this project. I have written validations at POJO level using hibernate constraints. The requirement here is that on saving the data the validation should be trig...
more »

2017-01-18 14:01 (1) Answers

If-IE mixin isn't passing CSS validator

So I'm pretty new to front end developing. I'm following a course for about 4 a 5 months now. But I'm a bit stuck with a IE mixin. The mixin if-IE mixin works great, see: @mixin if-ie { @media screen and (min-width:0\0) { @content; } @media al...
more »

2017-01-18 09:01 (1) Answers

Javascript validation in php

I have a custom template in wordpress. In that custom template I have a form like this: <label style="font-size:12px;"> First Name:</label> <input type="text" id="RF_FName" name="RF_FName" /> <input id="RegisterUser" type="subm...
more »

2017-01-18 08:01 (2) Answers

Angular not validating form select

I'm new to angular so bear with me. I have a form with a dropdown, textbox and a button. The user has to select an option from the dropbox and enter a value in the textbox before the form becomes valid. <form name='personDataSourceForm' novalida...
more »

2017-01-17 22:01 (3) Answers

Ionic 2 RegEX validation not working

I am trying to validate an input field that should allow only positive numbers greater than zero, and for this I'm using Validators.compose() with some rules. The problem is that I can't validate this field, somehow it isn't working as expected. Am I...
more »

2017-01-17 18:01 (1) Answers

Contact form validations using jquery

I'm trying to validate a contact form using this code. But I could not get appropriate validations for phone number,zip code and message. $(function() { $("form[name='contact']").validate({ rules: { username: "required", ...
more »

2017-01-17 18:01 (0) Answers

Nopcommerce Override RegisterValidator

I want to add another RuleFor for Phone Field in RegisterModel in my plugin. So, I create a plugin and extend RegisterValidator The following form: public partial class RegisterValidator : AbstractValidator<RegisterModel> { public Regist...
more »

2017-01-17 17:01 (1) Answers

Validation for textarea in reactjs

I am new to react and redux, currently working on validation of fields. I am able to validate <Field type="text" component="input" /> type fields. But how to validate selectbox, textarea and radio buttons. Below is my code for validation for ...
more »

2017-01-17 13:01 (2) Answers