Questions tagged [textfield]

A text field (or text box) is a user-interface control allowing the user to input text into a program.

A typical text field is a rectangle, often with a border. It can be either single-line or multi-line. In addition to typing, text fields allow for a variety of other activities, such as text selection (cut, copy, paste).

This GIF ("File:Textbox2.gif" on Wikimedia Commons) depicts a text field with text being entered:

A text field with the word 'Wikipedia' being typed in

4965 questions
1
vote
0 answers

ReactJS: TextField AutoScroll

I am trying to create a react element that has a TextField element, which automatically scrolls to the bottom of the textfield when there the TextField value updates it states, or if the user enters a new value. This is what I have right…
1
vote
2 answers

I'm not able to add textfield inside positioned widget in flutter

I'm not able to add textfield inside positioned widget. Could someone help me with the code import 'package:flutter/material.dart; import 'dart:math' as math;import 'dart:math' as math;import 'dart:math' as math; import…
1
vote
1 answer

Flutter autofillHints reveal password

the problem is as follows. I implemented autofill to log-in fields. The function works very well on android and iOS. It turned out, however, that the password hint on a Pixel 4 phone isn't obscure. Does anyone know how to fix this? [Pixel 4…
1
vote
0 answers

How to jump from one TextField to another with keyboard Action in Flutter?

I have two Rows with a two TextFormField Widgets in each Row like a Table. Now I want that when the user clicks next in the keyboard, he jumps to the TextFormField on the right, so that he stays in the same Row. But with my Code he jumps to the…
Dalon
  • 566
  • 8
  • 26
1
vote
2 answers

How can I get the input of my textfield inside my custom dialog widget?

I am working on a custom dialog called "Alertbox" where the user inserts a name into a textfield and after he pushes the button a function called "addTeam" created a team out of the string. This is how I created my dialog "Alertbox": import…
Obscuritas
  • 59
  • 6
1
vote
2 answers

Flutter Textfield Capitalize Each Word

class InputMdnWidget extends StatefulWidget { const InputMdnWidget({Key key}) : super(key: key); @override _InputMdnWidgetState createState() => _InputMdnWidgetState(); } class _InputMdnWidgetState extends State { …
Rohmatul Laily
  • 371
  • 3
  • 15
1
vote
2 answers

Is there an efficient way to focus to the next textformfield? (Flutter)

I have an app with almost 300 textfields and I been using the autofocus and textinputaction properties to go to the next textfield. And it works well for the textfields with a normal keyboard. But when I come to the next part of the form with a…
1
vote
1 answer

is there any way to validate Textfield in bottomsheet?

I want to validate my textfield(not textFormField) which is in bottomsheet, if textfield is empty it should shows error when I pressed the save button. I used below code the problem with the code is it shows error only when I press on save button…
shanmkha
  • 416
  • 1
  • 8
  • 27
1
vote
1 answer

I am unable to read the data from Textfield

I've been trying to make a simple calculator using JavaFX and I am very new to this. I have two TextFields and rest of the buttons are operators like +, -, *, /. The problem is that whenever I perform a calculation and press the equal, I get zero as…
1
vote
3 answers

Allow ONLY characters as input in TextField

I'm trying to make my TextField accept only characters using keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Text) as: TextField( value = query3.value, onValueChange = { newValue -> …
1
vote
5 answers

Flutter - Textfield add new line

I try to make a TextField with keyboardType: TextInputType.visiblePassword to disable the predictive text but with that I can't go to a new line because it's a submit button. I try to add textInputAction: TextInputAction.newline but don't work…
Flamageil
  • 110
  • 1
  • 10
1
vote
1 answer

The textfield in my search bar will not allow for text to be entered (swiftUI)

I have tried to implement a search bar within my app (using swiftUI), which shows up when I build the app. However, it won't allow me to type into the actual text field. My code is below. I have been searching for solutions to this problem for…
1
vote
1 answer

SwiftUI is there any way of getting a disabled TextField to be grayed out on Mac OS

When a SwitfUI TextField is disabled, on Mac OS, there is no visual feedback that the field is not enterable (apart from not accepting focus click). I have searched high and low, it looks like simply setting .background(Color.whatever) works for…
altimes
  • 380
  • 2
  • 13
1
vote
1 answer

TextField inside CupertinoAlertDialog

I'm making a dialog, which has a text field to get input from user, by using CupertinoAlertDialog. However, it keeps saying No Mater Widget Found. I searched and tried with some solution from the Internet but it didn't work. Here is my…
1
vote
0 answers

Add text to active TextField in SwiftUI

I'm building a calculator/graphing app with Swift and SwiftUI and I have a bunch of TextFields in a list, all of them with a keyboard type of .decimalpad. I want to have a button that adds a custom string (scientific notation i.e. "e+1") to the…
christian
  • 59
  • 6