Questions tagged [required]
Required is an HTML attribute of an input element that forces that the input be supplied.
required
905
questions
0
votes
1
answer
19
views
Required textarea field is not appropriately scrolled to when using fixed header. CSS property scroll-margin/padding does not work
I have a fixed header on my website and a form. There are some input fields and some textarea fields that are required. When the form is submitted without those fields filled, I would like the user to ...
1
vote
2
answers
79
views
How do I get these onclick events to validate the required fields?
I am trying to find a solution to where the row cannot be added unless the required fields are filled out. I also tried to do a couple validators for the modals but the ones that seemed like they ...
0
votes
1
answer
32
views
how to get Please fill out this feild message when input feild is empty in html over using setvalidity function?
is this correct code why because now validation for alphabetic characters is working fine but required is not working..........it is not displaying message as Please fill ot this feild message when ...
0
votes
0
answers
23
views
How to set focus on required validator error message on RadzenTextBox input control
i am working on Redzen controls library with asp.net 7.0 with blazor.
there is issue on set focus on the Redzen required validator on form post. the issue there the required validator popup by showing ...
0
votes
1
answer
61
views
Fields located in inactive tabs not being validated upon form submission
I want to use this validation:
function prueba(){
console.log("hola")
}
$("#boton").off("click").on("submit", function (event) {
event.preventDefault();
prueba();
});
.tabset > ...
-1
votes
1
answer
52
views
Is there a way to show warning for multiple required inputs that are left empty simultaneously?
In JavaScript (used in React), while using inputs, I used the "required" prop in some inputs in a form. However, when multiple fields are left empty, the warning only shows up in the first ...
0
votes
0
answers
84
views
How to make CKEditor5 Required
I would like to make a CKEditor5 textarea field required. In addition, I would like to set a trigger with Javascript, so that if a checkbox is checked, then the CKEditor5 field becomes required. ...
1
vote
1
answer
66
views
Laravel validation won't show up
I have a number input with type="number", and I give it a validation error for this grade input (nilai):
<div class="col-4">
<div class="form-group">
&...
0
votes
0
answers
53
views
HTML Editor Validation in ExtJS 6.5.0 - Mimicking Text Field Behavior When allowBlank is false
I'm currently working on an ExtJS 6.5.0 application where I've implemented an HTML editor component. The goal is to make the HTML editor behave like a text field when the allowBlank property is set to ...
0
votes
2
answers
55
views
apply required attribute to checkbox
can we apply required attribute to checkbox in html multiple checkbox?without use of javascript or jquery
I want to apply validation to html page without javascript.and warning message also be shown....
1
vote
1
answer
2k
views
How to handle this error in C# "Required Member must be set in object initiialzer or attribute constructor"
I have two classes - State - Principal Class and District Dependant class.
public class State
{
public int StateId { get; set; }
public required string StateName { get; set; }
public ...
-1
votes
1
answer
217
views
I want to change the color of the required field symbol (asterisk) to red
I want to change the color of the required field symbol (asterisk) to red.I'am using Mud-Blazor. I tried it using the below code. this is the image after i apply the code This is the code i'm using ...
0
votes
1
answer
94
views
Changing validations of a select field dynamically in Angular
I am encountering an issue with my Angular application where I'm dynamically changing the required attribute of a select field in a form after it has been submitted.
evaluations.component.html
<...
-1
votes
1
answer
90
views
Why does HTML's "required" attribute work with input type="submit" but not with button?
<form action="#" method="get" id="bookForm">
<div class="field">
<label for="title">Title</label>
&...
0
votes
0
answers
26
views
mongoDB, setting of required attribute of a field by async function
I run a web app on fastAPI framework in react and next.js.
I'm trying to set the value of 'required' attribute of a field by calling an async function like below.
This is a part of a schema.
...