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
4
votes
0 answers

How declare a relation Many-to-Many not required with Symfony2 and Doctrine2?

I have two PHP model classes named Question and SolutionMethod. A Category may have many Items and an Item may belong to many Categories. I have created a ManyToMany relation to both classes: class Question { /** *…
Ephraim
  • 260
  • 1
  • 6
  • 15
4
votes
2 answers

JSON Schema: XOR on required fields

JSON Schemas have a required property, which lists the required fields in a JSON object. For example, the following (simplified) schema validates a call that sends a text message to a user: { "type": "object", "properties": { "userId": {…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
4
votes
1 answer

Angular ng-required not working with custom directive

I am using Angularjs version 1.5 to validate the inputs in my form. ng-required is used to validate the all input required However, its not working with a custom directive which renders a combo. The combo retrieves the items based on parameter…
3
votes
2 answers

Required fields in flex

I've got a question about flex. I have a form and the email is required. I googled this and found the following solution:
user29964
  • 15,740
  • 21
  • 56
  • 63
3
votes
0 answers

Swagger request body required validation not working

I am having my project created using swagger "2.0". Problem is that I want to have some mandatory fields in request body and needs to be validated. Swagger is not able to validate the fields inside the body (Schema Object) and I would need it to…
3
votes
1 answer

Have required set to True by default in cerberus

Is there a way to tell cerberus to have required set to True by default for all keys in the schema? This would save me some time, because most often I want to assert the existence of a key.
lue3Seba
  • 65
  • 5
3
votes
1 answer

Magento 2 Error Message 'This is a required field'

I'm looking to change the generic error message in Magento 2. The default error message when an action is required is 'This is a required field'. Example; Configurable Product: If the add the cart button is clicked without an attribute selected, it…
Matthew
  • 43
  • 2
  • 11
3
votes
3 answers

Although not [required] List field shows up as required and Model State is not Valid due to it being null?

I have the following code- View- <% Html.BeginForm(); %>
<%= Html.DropDownList("DropDownSelectList", new SelectList( Model.DropDownSelectList, "Value", "Text"))%> Controller- public ActionResult Admin(string apiKey, string userId) { …
Vishal
  • 12,133
  • 17
  • 82
  • 128
3
votes
2 answers

Android: need to validate an edittext for non-blank input

If I want to enforce a maximum length of input in an EditText field, I can use the maxLength attribute. But if I want to enforce a minimum length (in my case, simply non-blank), I find no corresponding minLength attribute. I've also looked at the…
Anne Gunn
  • 2,347
  • 1
  • 28
  • 42
3
votes
1 answer

Getting error search_products() takes at least 2 arguments (2 given)

For some reason I'm getting the error: TypeError: search_products() takes at least 2 arguments (2 given) The weird thing is that I make the same API call in two separate places -- one in a function which I placed in one of the Model classes. The…
user1328021
  • 9,110
  • 14
  • 47
  • 78
3
votes
1 answer

How to get fillable PDF to prompt for required fields when user saves?

I've created a fillable PDF form using Acrobat 10. I see where you can set form fields to be required, but all that does is outline the fields in red. How can I get a prompt asking users to enter data in the required fields when they hit save?
kmcamara
  • 187
  • 3
  • 5
  • 16
3
votes
1 answer

How can I display which fields still need to be filled in using ASP.NET and C#?

I'm currently working on a web form in Visual Studio 2010 using C# and ASP.NET. It's a simple form - an online application - with several required fields. I already have regular expressions and required field validators in place, which display red…
user1216784
2
votes
1 answer

Require form fields with php

Given the following code example, what would I need to add to the check_input function so that it deals with missing / required form fields. Basically, all I am trying to do is to show the end user an error message on the top of my form that says…
chris hall
  • 23
  • 1
  • 4
2
votes
1 answer

Why required country dropdown Field not preventing checkout - WooCommerce

The title might seem a simple fix but it is indicating it is a required field - yet checkout is allowed without an option being chosen and the select option just showing. I am using Change WooCommerce checkout country field default option displayed…
2
votes
1 answer

Kentico - How to make a field required?

I have a custom module with different classes. One of the classes is a Company class with several fields. After the creation of this class we needed to add extra fields. Some of them need to be required, but I'm not able to mark them required. Is…
Nele
  • 83
  • 5
1
2
3
9 10