Questions tagged [Validation] (188)

1
answer

Spring MVC validation not working. How to do?

Can't do validation in spring mvc. Two days I and without to no avail. This is my whole project Image IDE Here is my user User package com.springfreemarkerform; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; public class User { @N...
Torey.Toy asked April 19th 20 at 12:17
0
answer

How to validate forms in a simple project?

In projects that are written in React, I use redux-form, formic, yup (depending on task)... These technologies, through documentation, clear examples, and the structure give quite a good methods of architecture to validate large forms and small... What are the techniques, the technology can be used in projects written in na...
corbin_Gorczany asked April 19th 20 at 12:09
1
answer

Data validation, how to implement?

validate - data validation Description We need to implement the validate function to validate the data in the object. The input comes in a set of data (e.g. form data) and a set of rules for validation, are described in a specific format. You need to understand whether the data these rules and, if not, to give information...
Austen asked April 8th 20 at 09:53
1
answer

How to create a custom validator in symfony?

In symfony how to create a custom validator? I kind of read https://symfony.com/doc/4.4/validation/custom_cons... but che can not understand. That I need validation occurred through the abstract type of such. /** * @Assert\NotBlank(message="Field must not be empty *") */ private $name; Let's write a simple validator if pr...
magdalena_Harv asked April 7th 20 at 09:53
0
answer

When checking uniqueness of an entity in java?

Hi all. When in java to check the uniqueness of an entity (a custom ConstraintValidator)? At the time of receiving a DTO from the form (when verified by the density and pattern match for all fields) or when the model is saved? If you check when you save a model, you have to catch TransactionSystemException and get through...
Myrtis_Satterfield99 asked April 7th 20 at 09:06
1
answer

Kirby — reset Default form fields validation Email. This can be eliminated?

Here using the contact form made to Kirby ( ev.viaduct.pro/neutra/en/contact ) When invalid input email field validinputs issues a warning message and reset the data entered in the form. It is by default. Can I bypass this and remove AUTOonline fields if you enter the wrong email?
Lizeth asked April 4th 20 at 13:29
1
answer

Not running validation on the numbers in the input type="number"?

Did validation inputа type "TEXT" in js, the pattern used here is this: ^[0-9]+$. Everything worked perfectly. Then decided to change the input type to NUMBER and pattern is broken. Input not validated the signs "-" and "+". What's the catch? Prompt who? As to forbid me to enter the pros and cons in the input of type number...
wilbert_Roberts asked April 4th 20 at 13:07
0
answer

How to change the error text if validation repeat password form in Symfony 4?

Hello! Symfony study recently, can't figure out how to change the text of the error: This value is not valid. when the passwords differently when it is submitted. A lot of things break, but can not understand it. Use this bilder:$user = new User(); $form = $this->createFormBuilder($user) ->add('name', TextType::cla...
Shea_Kuhlman77 asked April 3rd 20 at 16:40
2
answers

How to send data only after validation of HTML5 forms?

There is a form on the website, the data is sent via ajax to the server with node js. <form action="/page-mail" id="email-form" class="form" method="post" onSubmit="return false;"> <input type="text" id="form__fname" name="first_name" placeholder="First Name "> <input type="text" id="form__lname" name="last...
stacy_Jacobi asked April 2nd 20 at 17:26
4
answers

Is it safe to do a validation form via javascript?

Hello! Recently started to study creation of sites and there was such problem: is it safe to use for validation form in javascript? Because js code is in the public domain and everyone can see it. Also, can the user somehow modify my js code? Maybe it's worth to do validation via php?
Kevin.Langosh53 asked March 31st 20 at 21:37