Skip to main content

All Questions

Tagged with
0 votes
2 answers
125 views

Number input limiting max length [duplicate]

I have a simple number input in react component. I need to make it not accept more than 4 characters. But it doesn't work with maxLength attribute. What else i can do to prevent it taking more than 4 ...
Konul Memmedova's user avatar
1 vote
1 answer
193 views

How to integrate react-dropzone with useFormState?

I'm building a form using useFormState from the react-dom library. One of its fields involves a file input I implemented with react-dropzone. My current code is: Form export default function Form() { ...
Guido Carugati's user avatar
0 votes
0 answers
3 views

Auto filling a filed from another separate field when a checkbox is checked

function billingFunction (){ if(document.getElementById('same').checked){ document.getElementById('billingName').setAttribute('value') = document.getElementById('shippingName').value document....
Jaypdollar 's user avatar
0 votes
0 answers
34 views

Check if one input doesn't have a value in a group of other input in an array JQUERY

I was wondering if it was possible to check in an array if one of the input that compose this array is without a value, without checking them one by one. for example if you have a form with multiple ...
Maxyme Jarrier's user avatar
1 vote
1 answer
342 views

In Ionic/React, how do I display an error message when my form is submitted but also if input is touched using React hook forms?

I'm using Ionic 7, React 18, and REact hook forms v 7.48. I would like to validate my form upon submit, but also display error messages if the user touches the control and doesn't enter the input ...
Dave's user avatar
  • 17.1k
0 votes
1 answer
122 views

Can the pattern attribute of a form input be set dynamically to match the entered value of another input in that form?

The question basically says it all, but to give a little more context, I have a form with one of those standard approaches for email: an Email input and a Confirm Email input that must of course match ...
guitar4jc's user avatar
0 votes
0 answers
102 views

Dynamically set antd input default value in react js

I am trying to pass data to antd form and set the values of the data as default value of the input form but nothing displays on the input. I get the id from from the url and use the id to fetch data ...
etranz's user avatar
  • 1,175
0 votes
0 answers
234 views

input rendering problem using mat form field from Angular Material

I am creating a login form for my application, and using the mat-form-field component for my inputs, but when I open the login page I notice that the input does not appear in the correct way, it ...
Leonardo Lautenschlaeger's user avatar
-1 votes
1 answer
55 views

Why the required attribute doesn't work on form?

I'm creating this form but when I click the button "Create Task" the required attributes are been ignored. I'm creating the form with a innerHTML and : <form id="task-form"> <...
Eligio Cristantielli's user avatar
0 votes
1 answer
89 views

Why doesn't the input text field retain its value when disabled?

I am working on a simple input field using Angular which is running in StorybookJS. The problem that I am facing is that, the input text field is not retaining its value when disabled is set to true. ...
Jinglemahn's user avatar
0 votes
1 answer
160 views

Why does the form input value is inconsistent when disabled?

I am currently working on an Angular input component in StorybookJS. The problem that I am facing is that when I type a value (e.g., hello) in the control panel in storybook js and click disabled to ...
Jinglemahn's user avatar
3 votes
2 answers
7k views

How to resolve No value accessor for form control name in Angular?

I am trying to achieve the following where I can wrap <app-test-field> components inside the <form> tag where I can dynamically bind in formControlName and formGroup to TestField input as ...
Jinglemahn's user avatar
1 vote
1 answer
309 views

I'm getting a "AttributeError: module 'django.views' has no attribute 'my_form'" even though I have defined the function

I'm very new to django and python and I was making a form to accept values from the user to store in the database and I keep running into a ModuleNoFoundError, even though I have written the module in ...
Sneha_R's user avatar
  • 13
0 votes
0 answers
157 views

Validation of Ethereum address on a Form in React

import { Form } from "web3uikit" import React from "react" function SellSwapForm({ title, id, onSubmit, extraFields = [] }) { const commonFields = [ { name:...
Niklas Hoffmann's user avatar
0 votes
0 answers
78 views

C# Winforms - Get and update current keyboard language in background

I want to make a function that gets the current keyboard language of the user, while it is running in the background (form is hidden). I've tried to use InputLanguage.CurrentInputLanguage.Culture.Name ...
Shak1234's user avatar

15 30 50 per page