Questions tagged [required-field]

Indicates the required status of data field, where "required" is contrasted from "optional". Such status generally indicates that any [non-null] value is considered acceptable when populating or evaluating a specific field or fields.

Overview

The designation required-field indicates the required status of a data field, where "required" is contrasted from "optional".

Such status generally indicates that any non-null value is considered acceptable when populating or evaluating a specific field or fields.

This designation applies to any of various contexts, but is primarily associated with data-entry and data-validation.

136 questions
2
votes
1 answer

Laravel required_without validation rule in array

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_without validation rule as follow return [ …
fudo
  • 2,254
  • 4
  • 22
  • 44
2
votes
1 answer

Is a Binder the only way to have automatic handling for a data-entry field being required in Vaadin 8 layout?

In Vaadin 8, the BinderBuilder::asRequired lets us define a Binder where a field is known to be required on a layout. If data is missing, the layout indicates to the user that the field needs to have data entered. This is great functionality, and…
Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
2
votes
2 answers

Form inputs in modal not showing as required

I've read through some related articles without any luck of solving my own issue of getting form fields to appear as required. Perhaps the problem lies outside but I wanted to share in case it highlights a unique case. This is a class assignment…
Kevin H.
  • 318
  • 2
  • 15
2
votes
1 answer

MsAccess form - empty records originally, but needed to be filled mandatory, once the data entry started

I have MsAccess Form: ClientName, ID fields - records filled with the information Gender, Race, PrimaryLanguage fields (combo box type) are empty records Users will fill Gender, Race and PrimaryLanguage, PrimaryDisability fields with the…
Hell-1931
  • 489
  • 1
  • 6
  • 24
2
votes
1 answer

mdp-time-picker required validation

I am trying to add a required validation to my time picker(angular material time picker). for that i have used the directive mdp-required="true". full html as follows,
sison kk
  • 79
  • 12
2
votes
3 answers

CSS Checkboxes, how to deal with required

I am swapping browser checkboxes for my own using this HTML input[type="checkbox"] { display: none; width: 30px; &+label { width: 30px; &::before { display: inline-block; width: 30px; height: 26px; …
Chris Pink
  • 1,558
  • 1
  • 15
  • 28
2
votes
0 answers

adding highlight of required field to datepicker

There was a html file for a date-picker in the project that I am using. The html is as follows:
Gloria Santin
  • 2,066
  • 3
  • 51
  • 124
2
votes
1 answer

adding conditions to required attribute

I have a form with mainly all simple textboxes and I am using the required attribute for the fields that are required. However, I have a textarea that only needs to be required if the previous radio button is selected as "Yes", otherwise I don't…
dr1054
  • 89
  • 1
  • 4
  • 10
2
votes
0 answers

mvc getting attributes for derived model

I have 1 base model, a child model and another which is a child of the second one: class FirstModel { public virtual decimal? Property1 { get; set; } } class SecondModel : FirstModel { public override decimal? Property1 { get; set;…
2
votes
1 answer

MySQL allows inserts even when required fields are not present

I've got a database table for users that has a setup similar to this: +---------------------+--------------+------+-----+------------+----------------+ | Field | Type | Null | Key | Default | Extra …
Chris
  • 4,277
  • 7
  • 40
  • 55
2
votes
1 answer

Struggling with required field with PHP form

This is my first time using php and I haven't a clue what I'm doing. I've taken this template and coded a html form to go with it, it all works except that there's no required fields so it can send a blank email if you click submit. I'd like it to…
Joe Lomax
  • 23
  • 2
2
votes
4 answers

How to intercept HTML5 input validation with JavaScript?

...
Now, if I enter a location and hit ENTER, the browser tells me that an URL is required which is not an expected or…
Simon Ferndriger
  • 4,455
  • 6
  • 28
  • 53
2
votes
6 answers

add required suffix to zf2 form element label

I use the the following code to add a email element to my Zend Framework 2 form: $form->add(array( 'type' => 'Zend\Form\Element\Email', 'name' => 'email', 'options' => array( 'label' => 'Email' ), )); By default the…
tihe
  • 2,452
  • 3
  • 25
  • 27
2
votes
7 answers

Form validation using PHP

I want to validate my form so ALL of the fields are required. If a field is NOT inserted or left blank it will display an error message AFTER submission. Could anyone help? Form Form Input Data
user2075528
  • 55
  • 2
  • 2
  • 5
2
votes
1 answer

How to validate values instantly, but check for required only on full submit?

I am currently adding validation to a form. There are two things to check: The correctness of the value itself (e.g. if it is a positive integer or valid email) and whether all required fields were filled in. However, if by some means (f:ajax or…
Louise
  • 1,451
  • 1
  • 18
  • 40
1 2
3
9 10