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
1 answer

Android change TextField outline/boarder color

I have a text field, and on Android 2.2, when it is in focus or being used, it highlights it and puts an orange boarder around it. The orange really doesn't look good with the other colors in my app, so I am wondering if there is any way to change…
user802609
  • 799
  • 6
  • 19
  • 34
1
vote
0 answers

How can I edit an array element property that is part of a NavigationLink label, inside a ForEach with a textview?

I'm new to SwiftUI and trying have hit a stumbling block on this one. Essentially I want to rename a collection which is an element of an array, which is an environment object. Firstly my data model struct: Collection struct Collection: Identifiable…
1
vote
1 answer

My required and defaultValue attributes are not working on my Textfield, but placeholder is

I have a simple edit functionality on the card below. When I click edit, a textfield should appear that allows me to save it. However, the required and defaultValue attributes are not working on my Textfield, but placeholder is (see image Textfield…
Lloyd Rajoo
  • 137
  • 2
  • 13
1
vote
1 answer

How to add texdfields at runtime and manage those textfields values in android jetpack compose?

I want to create a Rate List application using jetpack compose. Rate List have different items and each item have different price according to weight. For Example Apple(Items) 1kg price is 100Rs and for 5kg price is 400Rs etc. Like apple different…
1
vote
1 answer

How to make animation of lines in OTP move one at a time when pasting a text in SwiftUI

I created an OTP field which will animate the lines each time you type a digit. This works well. However, I want the animation of green lines to run one at time(from left to right) when pasting just like when typing a number. Currently when you…
Dreiohc
  • 317
  • 2
  • 12
1
vote
2 answers

Can't type in React TextField Input

I have added a simple TextField from Material-UI into my landing page but cannot type in the React input field. I'm not sure what is causing the issue and have double-checked the following issues: Proper casing of onChange (not onchange) Input…
Henrik
  • 191
  • 1
  • 17
1
vote
2 answers

How to disable highlighted text in TextField in Swift UI

I created an OTP field using textfield but I want to disable highlighting the text when you double tap or longpress on a TextField. I tried adjusting the font size to 0. This seems to shrink the grey highlight but it did not hide it totally. I can't…
Dreiohc
  • 317
  • 2
  • 12
1
vote
5 answers

SwiftUI: How to change the TextField height dynamicly to a threshold and then allow scrolling?

The LineLimit does not work: TextField("Text", text: $model.commitDescr) .multilineTextAlignment(.leading) .lineLimit(5) LineLimit change nothing - I'm able to display 10-20-30 lines. Similar way with scrollView allways have…
Andrew_STOP_RU_WAR_IN_UA
  • 9,318
  • 5
  • 65
  • 101
1
vote
0 answers

Make Python / tkintertextfield scroll early

I'm tinkering around with a scrollable textfield in Python using tkinter and I'm looking for a solution to make it scroll before the user has reached the last line typing. I prefer to have the text pretty much centered while typing and want my…
Barba Q
  • 11
  • 1
1
vote
1 answer

How to capitalize the TextField value first letter of the first word for each sentence?

Is such a thing possible? And is it possible to follow these rules? similar questions have been asked before but they are forsimple capital the first letter of first word and not more
saeid
  • 43
  • 1
  • 6
1
vote
2 answers

is there a way to change the background color of a specific word in outlined text field jetpack compose?

I am looking for a way to change the background color of certain words in outlined text field while typing, but I couldn't find a way to achieve that yet. Does anyone know a way to do this? (Preferably in compose but other solutions are also OK.)
1
vote
1 answer

ListView containing a multiline Textfield followed by ListTiles in flutter

The goal is to have a ListView that contains a multiline texfield (with an arbitrary number of lines, maxLines=null) that is followed by several ListTiles. When lines are added to the TextField, it grows and the ListTiles should move accordingly.…
1
vote
2 answers

Is it possible to save the value of hintText in TextFormField in Flutter?

I need to save the value inside the hintText to firebase. It was a value that taken from the previous page and I need to store it into database. I can store the other value which is entered by user but just cannot store the hintText. Are there any…
user16735212
1
vote
1 answer

How to set an attribute of Vaadin 8 TextField without getElement method?

I am writing a filter to filter person names which are displayed in a column pertaining to a vaadin grid. I add a data provider with row objects as follows: ListDataProvider dataProvider = new ListDataProvider<>(dataSet.getRows()); …
Andferdd
  • 91
  • 3
1
vote
3 answers

Show Placeholder if the value equal to "0" in SwiftUI

How to show the placeholder if the value of the TextField is equal to "0" in SwiftUI ?
Usefz89
  • 53
  • 5