Questions tagged [inputfield]
Questions about the Mathematica control type InputField.
159
questions
38
votes
3
answers
3k
views
Automatically check student answers in tests
I am a physics teacher and I am looking for a way to create homework assignments within Mathematica so that each problem has an input field that students can use to check their answers.
For example, ...
23
votes
6
answers
2k
views
How can I make an InputField with a proper newline/carriage return?
The return key does not work as expected in an InputField, how can I overcome this?
20
votes
4
answers
1k
views
Autocomplete InputField
Is there a way to define a InputField that displays a list of options as you type? More specifically I'm looking for an ...
18
votes
2
answers
572
views
Rounding problems inside InputField
The community needs to determine if this is behavior is a bug or not. – Mr.Wizard
Consider the following InputField
...
15
votes
1
answer
3k
views
How to specify the InputField as a String in Manipulate
I'm putting together a Demonstration which utilizes a function which operates on a (manipulated) String, and I'd like the ...
14
votes
3
answers
6k
views
Reading in scientific notation from C++ to Mathematica
With a text file with entries formatted as (output from C++):
f[38.67] = -2.5387862698183892298317350539374412777263289550697e-05;
⋮
Is there a way to read this ...
14
votes
3
answers
884
views
Palette with editable InputField
I need a Palette with editable InputField.
When I try the code ...
12
votes
1
answer
797
views
InputField does not always update continuously with ContinuousAction
By fiddling with Vitaliy's solution for a small GUI, I've come accross this particular behaviour of InputField:
...
11
votes
2
answers
474
views
How can you stop ordering of InputField entries?
I have:
InputField[Dynamic[d]]
Dynamic[d]
If I enter e.g.
a b x^5 h m
the entry automatically gets sorted, as per screen ...
10
votes
2
answers
468
views
AJAX-style HTTP calls triggered by a variable change
I'm trying to create a dynamic InputField that would autocomplete the address as I type it into the field, by calling Google Maps' GeoCoding API on every change of ...
10
votes
1
answer
728
views
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 ...
10
votes
1
answer
317
views
Detect when InputField gets keyboard focus
How might I detect when an InputField comes into focus?
For example ideally something like this would work.
...
9
votes
1
answer
300
views
Converting to InputForm or StandardForm without deleting comments
Following on from this question: Is it possible to convert an expression to InputForm or StandardForm without losing the comments?
For example,
...
8
votes
2
answers
192
views
Enter numbers into a an already existing list
How can the user enter specific numbers to a an already existed list using InputField, for example:
...
7
votes
2
answers
783
views
How to efficiently get the value from form UI built with dynamic InputField
Here is the code that I used to make a tabular UI.
...
7
votes
1
answer
575
views
Limit characters/digits entered into InputField
When using InputField, whether setting the input type as a Number or String, is there a way ...
7
votes
1
answer
290
views
Can a field be used for both input and output (example: exchange rate calculator)
Suppose I want to build a simple currency converter like this one:
The functionality is straightforward: enter an amount in any field box, it gets converted into other currencies whose fields are ...
7
votes
2
answers
183
views
InputField with carriage return in cloud notebooks?
I'm looking for a way of constructing a multi-line InputField in a cloud notebook. That is, a text field that supports the following five behaviors:
The 'Enter' ...
7
votes
2
answers
252
views
How to write 1.0 in InputFields with ContinuousAction and Number constraint
With the concept of user responsiveness in mind, I’ve tinkered a couple of small apps that are supposed to be eh… responsive, i.e. calculating without having to press enter.
They all rely on ...
6
votes
4
answers
535
views
Dynamic list in which the sum of the elements is invariant under changes to the elements
2nd Update
Here's a snapshot of a graphical user interface I'm thinking. I hope this could be self-explanatory and demonstrate the functionalities I mentioned in the 1st update. Thank you all!
Update
...
6
votes
1
answer
644
views
InputField closer to html TextArea experience
Edits are marked in bold:
How do I make an InputField that behaves just like the following HTML Textarea example.
Specific Features that are ideal:
Text box, ...
6
votes
1
answer
246
views
How can I make sure all InputFields have values before processing a nb form?
This is a two part problem:
I have a form that accepts both numeric and text inputs, then runs a function using a "process" Button. The issue I'm having is users that forget to fill out all of the ...
6
votes
1
answer
273
views
Giving the input focus to a particular input field
A couple of versions of Mathematica ago there was discussion of how one can set focus on a particular input field:
How to set focus of a dialog window?
http://community.wolfram.com/groups/-/m/t/...
6
votes
1
answer
696
views
Interactive Graph Editing with Animation
I want to make a simple interactive user interface like this:
Such that when the user clicks on the "Add Edge" button, the edge specified by from and to fiels is added to the graph. The new graph may ...
5
votes
1
answer
379
views
Pretty InputField
I'm trying to create a "template" notebook for myself.
I want to get input from a single InputField, and then run a few operations on it.
How can I make the <...
5
votes
1
answer
151
views
Hold[Expression] (or similar) in InputField that truly holds the input unmodified
I am trying to design a user interface where the specific form that the user enters in InputFields are left unchanged. For example, if the user puts in a number in scientific notation, it would be ...
5
votes
1
answer
155
views
Dynamic InputField with syntax highlighting?
I'm trying to create a notebook where a user can enter a Mathematica expression, and its syntax is analyzed (number of tokens, compressed size, etc.).
Trying this answer,
...
5
votes
2
answers
407
views
How use TraditionalForm input in InputField?
Inside a Manipulate, I'd like one of the controls to be an InputField and to allow the input entered to be in traditional form. ...
5
votes
2
answers
528
views
Entering scientific notation in an InputField
I am trying to make an InputField for numeric input, but
InputField[Dynamic[num],Number]
Does not allow the user to type ...
5
votes
2
answers
141
views
How to set the width of InputField in tables with dynamical content?
I have written the following code to generate the table that is shown below.
...
5
votes
1
answer
128
views
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 ...
5
votes
1
answer
142
views
How to speed up a text search widget?
I have an InputField that searches a predefined list for matching strings and displays them in a TextGrid. But when the list is ...
5
votes
1
answer
96
views
DialogInput on Raspberry Pi
I have a Raspberry Pi 3 with Mathematica 10.3. The following code does not work properly:
...
5
votes
2
answers
3k
views
how to use InputField function within the manipulate function
I am trying to make a demonstration that can take in a matrix and create a vector field. Currently I have the demonstration all functioning but to define the matrix it uses sliders. I know they cannot ...
5
votes
1
answer
186
views
InputField, PasteButton, and Check not playing nicely with each other
Context Added to End
In a previous question, I was looking for a way for an InputField to maintain the input structure of expressions so as to allow the user's ...
5
votes
1
answer
160
views
Is there a way to configure the Ask function so that input fields can be optional?
I see that FormFunction includes settings that could work, but I can't seem to find any way to get it to work within the "Ask" framework.
Related: https://reference.wolfram.com/language/tutorial/...
5
votes
2
answers
391
views
InputField as both in- and output fields with ContinuousAction
Many years ago, I made a handy little program in Flash.
It consisted of a number of input fields, each representing a variable that was dependent on all the others.
As soon as any field changed, the ...
5
votes
1
answer
192
views
How to copy text from InputField without adding spurious spaces? [closed]
The problem happens when you copy text from an InputField and paste it into another: Mathematica inserts spaces in unnecessary places, such as around any ...
5
votes
2
answers
168
views
Must Run Cell Twice to Display Values
Bug introduced in 8 or earlier and fixed in 9
What is going on here?
Print[InputField[]]
CellPrint[TextCell["my\"text", "Text", ShowStringCharacters -> True]]
...
5
votes
0
answers
198
views
InputField GUI Glitches
Has anyone observed the following GUI glitches in Mathematica (see screenshots below)? I have noticed this beginning to occur from Mathematica 10 onwards. I've only tested their occurrence with the <...
5
votes
0
answers
147
views
Make Enter create new line break inside InputField [duplicate]
I would like to write multiple lines of text inside an InputField, using ContinuousAction->True to update some variable ...
4
votes
3
answers
1k
views
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 ...
4
votes
1
answer
676
views
How can I create input fields based on the user's choice from a popup menu?
I'm trying to create an interface with Mathematica. However, I need some instructions concerning the code below. This is about 10% of what I have in mind, but first I need to know how can I create <...
4
votes
2
answers
538
views
Updating the format style of input cells from an older/'pre-styled' notebook
I have been given a large notebook that was created in mathematica 6. It contains a structure of sections and subsections and the input text is formatted in an unusual (possibly just old) style (see ...
4
votes
1
answer
413
views
Table with some editable cells
I have a table:
I want it to be editable only where the zeros appear. I read this post Generating an editable table that can be used as input because it's almost exactly what I want, but I couln't ...
4
votes
1
answer
116
views
Focus on `InputField` upon creation? [duplicate]
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 ...
4
votes
1
answer
145
views
Automatically updating input or inputfield
Is it feasible to make an input field, that or similar functionality, that could be constantly updated while typing or editing, without clicking Enter button?
The example is as follows:
...
4
votes
1
answer
434
views
Hide input with multiple output cells
I want to hide my input, but not with "close cell". i also want to have fast access to the input cell.
i found Mr.Wizard's AutoCollapse function, but it doesn't work with two or more Print-functions ...
4
votes
1
answer
636
views
help with dynamic input
I'm trying to build a pop up window with i lines. Each line would read:
Number of neurons in layer 1:
Number of neurons in layer 2:
etc until layer i
The user would enter a numeric value on each ...
4
votes
1
answer
358
views
Assign values to parameters from a list/Matrix using GUI
Assume there is a list like:
ma={{L1,r1},{L2,r2}};
I want to convert the ma to a GUI which asks me about the values of L1,r1,...