Questions tagged [validating]
107 questions
0
votes
3 answers
Checking numbers input with Regex - C#
I've always been using Regex to check for user's input validity, ie checking for a correct mail adress, serial number, etc...
Now I want to check that the user input is, let's say, a number contained between : 78 and 143.
We're not quite analysing…

Andy M
- 5,945
- 7
- 51
- 96
0
votes
0 answers
Issues with form validation with Javascript
I am having some issues validating my input fields with using Javascript.
I'm trying to make it so when u put for example your name in the input field, it should appear as a green border (which kinda works already) and when nothing is filled in, it…

Distortion
- 309
- 2
- 3
- 12
0
votes
0 answers
Wordpress Contact form 7, fields in template.php - not validating correctly
I need to generate CF7 fields from php to make the form dynamic.
So instead of writing
[text* your-name]
and so on directly in wordpress, I have a template file that does that instead. The problem is that when doing so, the validation is…
Mes
- 34
- 4
0
votes
1 answer
Validating textbox when enter button is pushed
I'm creating a AddIn for Autodesk Inventor (3D drawing software), and for the moment I am playing with positional constraints.
I created a custom user menu for quick editing certain values, in this case the elevation and orientation value.
First I…

Mech_Engineer
- 535
- 1
- 19
- 46
0
votes
1 answer
Validating with ActiveModel in Ruby on Rails 4 Seemingly not Working
When I enter data into a form that I know should fail, it doesn't. As per my model below, I require the data to be any combination of a-z, A-Z, 0-9 and whitespace, and when I stuff the form with garbage like )(&^%^&(*&%^&** or even submit an empty…

David Herring
- 25
- 7
0
votes
2 answers
Clicking button validates text box in C# but doesn't trigger the button event
I have UI form in C# with a bunch of combo boxes and a text box. I have the validated and validating events associated with the text box to make sure the user selects valid input. I also have a "View Results" and "Export Results" buttons in the…

let_there_be_light
- 837
- 3
- 9
- 15
0
votes
2 answers
validating user input to text only and integer only
i have searched for a simple, non complicated answer on how to ensure that the user is asked again if they enter anything other than text for 1 and an integer for 2.
when entering these input variables, however i have only found complicated…

ozzie
- 11
- 1
0
votes
1 answer
Validate decimal max/min values in a NSTextField
First of all i have to do this without IB and without advanced Objective-C techniques like KVO.
My problem comes from the simple fact that i can't find a way to get the whole new string value of the text field.
I'm tried using the delegate…

Lothar
- 12,537
- 6
- 72
- 121
0
votes
1 answer
Validating string input value c language
#include
int main()
{
char name[10];
printf("Who are you? \n");
fgets(name,10,stdin);
printf("Good to meet you, %s.\n",name);
if(name=='spyros')
{
printf("Then you are here %s\n",name)
}
return(0);
}
Then i have
warning …
0
votes
1 answer
Cant quite invalidate/validate dates correctly (arrival date) ?
This is my html code with a snippet of just the code I am trying to use to invalidate/validate date entries with hopefully all of the corresponding and necessary variables declared.
Booking Page
…

Unknown
- 13
- 5
0
votes
0 answers
Validating checkboxes in Ruby on rails
I have a form to submit recipes, but I need to check if the user selected some ingredents and implements
0
votes
1 answer
How to check whether an input conforms to an arbitrary amount of rules in Java?
For my specific task, I'm trying to check whether a word falls into a specified set of part of speech. This could be done like so:
private boolean validate(String word) {
if (isNoun(word) || isVerb(word) || isParticiple(word) || ... )
…

Petrus K.
- 840
- 7
- 27
- 56
0
votes
1 answer
Validate an integer value through form
How to validate an integer value through form in java
if(!(Integer.parseInt(txtStart.getText()).equals(txtStart.getText()))
{
JOptionPane.showMessageDialog(null, "Please Enter Valid Start Page");
}

Saurav Dhital
- 61
- 1
- 1
- 6
0
votes
2 answers
How to I validated an input for being an Int and within a number range?
The program displays a question and the user is meant to input a number 1 to 5. 5 questions for 5 users. However, the program doesn't recognize a good input, or a bad, as long as its an Int. I have to enter input a bunch of times before it goes it…

RIDDLEisVoltron
- 31
- 1
- 1
- 5