About 9,590,000 results
Open links in new tab
  1. .net - required vs [Required] in C# 11 - Stack Overflow

    Mar 30, 2023 · Agreed. [Required] is for data validation and in many cases work with ef, and required keyword is c# general.

  2. validation - How to Indicate Required Fields? - Stack Overflow

    Source: Form fields — Required vs Optional by Jordane Sanson Why use optional fields is always better than required : An asterisk is obvious to you, not to everyone, believe me, there are …

  3. asp.net mvc - How to add "required" attribute to mvc razor …

    I have the following MVC 5 Razor HTML helper: @Html.TextBoxFor(m => m.ShortName, new { @class = "form-control", @placeholder = "short name"}) I need this field to be required (i.e. …

  4. Conditionally required property using data annotations

    If they check company a bunch of other fields become required. Such data model properties (related to those fields) would have this attribute on them [RequiredIf('IsCompany', true)] …

  5. Using the HTML5 "required" attribute for a group of checkboxes?

    Jun 3, 2011 · When using the newer browsers that support HTML5 (FireFox 4 for example); and a form field has the attribute required='required'; and the form field is empty/blank; and the …

  6. Use CSS to automatically add 'required field' asterisk to form inputs

    What you need is :required selector - it will select all fields with 'required' attribute (so no need to add any additional classes). Then - style inputs according to your needs.

  7. html - required or required = "required" - Stack Overflow

    Sep 24, 2013 · Required This attribute specifies that the user must fill in a value before submitting a form. It cannot be used when the type attribute is hidden, image, or a button type (submit, …

  8. How to set Github Actions as Required Status Checks

    Sep 14, 2021 · I would like to set my GitHub Actions as required status checks so that I would be able to have protected branches and prevent commits from being pushed to specific branches …

  9. Python Argparse conditionally required arguments

    Sep 2, 2014 · This way required receives either True or False depending on whether the user as used --argument. Already tested it, seems to work and guarantees that -a and -b have an …

  10. "HTTPS required" while logging in to Keycloak as admin

    Jun 3, 2015 · Obviously, make sure to replace realm names, username, port, etc as required. For more information on getting started with the Admin CLI, see documentation: Server …