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
1
vote
3 answers

Is there a way to make an inherited abstract property a required constructor argument in a Python dataclass?

I'm using Python dataclasses with inheritance and I would like to make an inherited abstract property into a required constructor argument. Using an inherited abstract property as a optional constructor argument works as expected, but I've been…
1
vote
1 answer

Remove required in the field Contact Form 7

is it possible to remove this attribute or class from the field placed in the form? I have some fields as required, but for a strange reason, it marks all the fields as required
1
vote
2 answers

Writing a function to calculate object properties whereas the object includes optional properties

I have a record of data (object-literal), and I need to calculate the average of several of its properties. For example, consider that each record reflects a sample of dog breeds and their weights. We have one representative for each breed, but two…
Emman
  • 3,695
  • 2
  • 20
  • 44
1
vote
0 answers

Nebular: Input with required asterick

I would like to add the standard asterisk on input fields that are required in a form. Is there a directive or something to do that or do I have to create my own directive? Is it possible to link this attribute to the validator? Thank you for your…
Alexglvr
  • 427
  • 5
  • 18
1
vote
2 answers

TypeScript: Require one of two destructured params

When creating an interface that requires one of two possible properties to be set, type unions are helpful: enum Plans { bronze, silver, gold } type Plan = keyof typeof Plans; interface CreateSubscriptionBase { /** User's id */ uid: string; …
1
vote
2 answers

Main form record validation when moving focus to subform in MS Access

Using Access 2016, I have a main form frmInvoice which has a subform frmInvoiceDetail. My main form is bound to a table with a Required field PaymentMethod. However, the field is usually not populated until after the items on the invoice have been…
BiigJiim
  • 165
  • 1
  • 1
  • 10
1
vote
2 answers

How to avoid missing setting a field's value in a POJO?

I have a POJO which has tens of fields, and I have to set all the fields' values. How to avoid forgetting to set some field's value? // POJO public class Employee { private Date birthday; private String firstName; private String lastName; …
herseus
  • 51
  • 1
  • 7
1
vote
1 answer

What system color to use to highlight required fields in delphi/windows

a bit background I am currently using the clHighlight color together with a StyleServices.GetSystemColor call to set the background color of controls that are: not focused have a NULL value (field.IsNull=True) and are about a required field…
H.Hasenack
  • 1,094
  • 8
  • 27
1
vote
3 answers

Yii2: How to avoid required fields in a view?

I have a view about holidays where a user uses a form to choose a place to travel and a hotel. It has two models: HolidaysPlaces and HolidaysHotels. The user have to fill the form in this order using the view: The user completes the fields called…
Roby Sottini
  • 2,117
  • 6
  • 48
  • 88
1
vote
1 answer

Required and optional field in morphia dto

How can I make a field required in Data Transfer Model definition of morphia mongo Db? For example public class ExapmleDto { @Id private String _id; private String userName; } In this code i want to make username a…
ZINDA ROBOT
  • 280
  • 2
  • 15
1
vote
1 answer

Primefaces datatable required fields not work

I would create a check input information about specified in: http://www.primefaces.org/showcase/ui/message/messages.xhtml I create a dataTable with a lot required field (inputText with attribute required="true") and a p:message into datatable…
Diaboliko
  • 231
  • 1
  • 5
  • 21
1
vote
1 answer

Address required_with other fields

I'm trying to input validation on a form where a users full address is not required unless one of the address fields is filled in. Example: If I fill out the state or city input field I would then be required to fill out the zip code and street…
N3rdyB3an
  • 11
  • 1
  • 2
1
vote
0 answers

Required field in custom content type not required in custom list instance

I have an issue with a custom SharePoint 2013 solution. Among other components, it consists of: a feature with several custom fields with different types, some of which are taxonomy fields, a feature with three custom content types using different…
Erwin
  • 33
  • 1
  • 1
  • 6
1
vote
2 answers

Why required option is not working in text field?

I added a required option in the form, but it seems not to be working except email type.
DasCodes
  • 334
  • 1
  • 4
  • 15
1
vote
0 answers

Required and Placeholder clash on forms

I am writing a form and using the required tag and the placeholder tag on inputs. However inputs of type text do not seem to become required as the placeholder text is already making it validate. Is this a known problem or is there a workaround?…
user1847224