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
2 answers

Flutter: How to call a function before onChanged Method from TextFormField gets called?

I have a reusable TextFormField Widget for decimal number inputs. If the user input a decimal number with a comma instead of a dot I want to replace it. So for that I created a reusable TextFormField Widget where I want to replace the comma with a…
Dalon
  • 566
  • 8
  • 26
1
vote
1 answer

SwiftUI Custom textfield with onEditingChanged closure

News to SwiftUI so please bare with me :) I have a custom textfield setup as a struct in a separate file. I would like to use onEditingChanged in my content view (the closure would be perfect), is this possible? I have tried with a binding but it…
jat
  • 183
  • 3
  • 14
1
vote
0 answers

Allow only system keyboard for iOS text field

Is it possible to allow only iOS system keyboard for TextField in SwiftUI (or maybe for UITextField from UIKit)? There is a solution in Apple docs to reject the use of all custom keyboards but it's for the whole app and I need just for a single…
as_danmark
  • 11
  • 2
1
vote
1 answer
1
vote
1 answer

How to Make Input Field in kivymd focus agane

using kivymd to make app for scanning barcode quickly as possible , i created this app with one text field that will take QR code and store it, if user input once , focus will gone and must focus it manually to get another input from user . it is…
Ahmed Atef
  • 21
  • 2
1
vote
0 answers

different text direction for different lines of a textfield in flutter

I'm making a chat app with flutter Can anyone help me to use different text direction on each line of textfield or suggest some library for rtl and ltr? I tried to detect text direction in textfield by intl package it works just for one line of text…
Mhwmd
  • 71
  • 8
1
vote
1 answer

Can I change Vuetify's outlined textfield label position and line interval?

I'm using Vuetify trying to approach this textfield style. I'm using outlined textfield provided them with a simple custom style, but I can't change its label position. Is there any way I could change the label position and the "interval" where the…
Nats
  • 31
  • 5
1
vote
1 answer

Flutter: give focus to just added TextField

I need to give a focus on just created TextField. The example code is here: https://dartpad.dev/?id=1c84c70d956efde95fa12820c9afa4aa class _TestPageState extends State { List controllers = [ …
1
vote
0 answers

How can I toggle secure text entry and NOT clearing text in Objective-C?

I'm trying to make a show/hide password textfield toggle in Objective-C, but I'm having an issue with secure text entry. I've seen some answers to this question, (this and this), but I can't get myself around the problem. So, I have a button that…
Jas Har
  • 31
  • 5
1
vote
1 answer

How to show the values from a PHP array in a textfield, based on a dropdown menu

any help would be great. Here's what I have so far: PHP: PullDown Menu: