Questions tagged [inputfield]

Questions about the Mathematica control type InputField.

156 questions
10
votes
1 answer

How to make InputTable

There is InputField in mma but how to make InputTable? In MathCAD it`s possible to insert Excel spreadsheet with input and output variables.Input variables I use for filling of header row and column and output variable for output. How to make the…
Igor Fomenko
  • 573
  • 3
  • 13
5
votes
1 answer

Hide part of a CompoundElement in a FormPage

I have a FormPage I am working on that uses CompoundElement to structure the output. In most cases, I want the user to be able to enter both fields, but occasionally I want to have the field hidden while providing the input automatically. In a…
kickert
  • 1,820
  • 8
  • 22
4
votes
3 answers

Input field that appends to a list

I'd like to make a dynamic, changeable list, which has elements that are supplied by the user in an InputField. I want the program to have an InputField and a "reset" button. Every time the user types an element into the InputField and presses TAB,…
Gabriel
  • 1,877
  • 12
  • 22
4
votes
1 answer

Focus on `InputField` upon creation?

Let's say we create an input field as InputField[] After hitting enter, the input field appears in the output area below, however the focus in the notebook jumps straight to the next line, where a new cell can be created. Is there a way to create…
Kagaratsch
  • 11,955
  • 4
  • 25
  • 72
3
votes
1 answer

How to set up the Enter, Shift+Enter feature in InputField?

When InputField was set to String, I found a way to change the line of the sentence by pressing Enter. In this case, how does the calculation run when the Shift+Enter key is pressed? EventHandler[ InputField[Dynamic@text, String, ContinuousAction ->…
Milk
  • 1,688
  • 10
  • 9
3
votes
1 answer

Toggle frame color and label on input field

I am attempting to mock up a (somewhat poorly designed) user interface that has input fields that when required AND when the user tries to click OK, changes so that they are outlined in red and show text above them with instructions to "Please…
Todd Johnson
  • 649
  • 3
  • 12
1
vote
1 answer

Text input style with math expression inside

I would like to make a text input with a math expression(yellow background) within the text input. Like this: But unfortunately I don't remember what it's called. Thanks!
Onizuka
  • 349
  • 1
  • 2
  • 8
1
vote
1 answer

Dynamic data filter using InputField

I would like to filter data in the table dynamically. Here is the example of the code: search = "da"; data = {Range[100],ResourceFunction["RandomString"][{"a", "d", "e", "n", "r", "s"}, {100, 5}]} // Transpose; Column@{ InputField[Dynamic@search,…
1
vote
1 answer

Is it possible to add a title to the inputfield

I was wondering if it is possible to add a title to InputField As far as I know, you can only add a FieldHint, this one will disappear however as soon as the user has entered input. But I still want the user to know what his input corresponds to.…
julsto
  • 143
  • 6
1
vote
1 answer

Run-time user input

A question about run-time data input. I have a notebook that scrapes data from a web site that presents new data every day on a new web page, e.g.: http://___/nov1.htm http://___/nov2.htm http://___/nov3.htm etc. I would like to have my notebook…
Suite401
  • 4,793
  • 8
  • 18
0
votes
1 answer

How to read long numbers?

Now, I have a data file (abc.dat) and it includes many long-Fortran-like numerical numbers as follows, 6.329743394299864138426200801048403E-0008 -2.549598515596261539775494416553164E-0005 -4.070996338361811028817170114484442E-0005 How to read…
Orders
  • 1,247
  • 11
  • 20
0
votes
1 answer

How to remove quotation marks from a generic InputField

I need to use an InputField with a generic dynamic variable (not restricted to be Number or String or whatsever) and I don't want to see the quotation marks in the case the input is a string. Here is an example z=""; InputField[Dynamic[z]] I know…
bobknight
  • 2,037
  • 1
  • 13
  • 15
0
votes
0 answers

how to change the background of the Inputfield

I am using 12.1, in the documentation, it says I can change the background of the InputField. I have tried InputField[x,Background->Blue], but the InputField background is still white. Any suggestions on how to change the background color of the…
bakerryd123
  • 427
  • 2
  • 8
0
votes
1 answer

"How to create an auto updated FieldCompletionFunction

I'd like to have an InputField with "dynamic" word autocompletion from a list : if I start to type some letters in the field I want the autocomplete suggestion updated. To do that I use the following code : ListOfName = {"Steve",…
Dalnor
  • 161
  • 1
  • 9
-6
votes
1 answer

How can I make a customized InputField for date inputs?

I want to make an InputField that only allows a specific date format to be entered. I want to display a field hint in the format "dd:mm:yyyy". Once the user clicks on the input field, then the user should be able to enter date values. The user…
subbu
  • 2,304
  • 1
  • 13
  • 32