Questions tagged [inputfield]

Questions about the Mathematica control type InputField.

Filter by
Sorted by
Tagged with
37
votes
3answers
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, ...
21
votes
5answers
1k 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?
19
votes
4answers
917 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 ...
16
votes
2answers
502 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 ...
14
votes
3answers
718 views

Palette with editable InputField

I need a Palette with editable InputField. When I try the code ...
12
votes
1answer
2k 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 ...
12
votes
1answer
759 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
2answers
419 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
2answers
444 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
1answer
257 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
2answers
5k 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 ...
9
votes
1answer
606 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 ...
8
votes
2answers
177 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: ...
8
votes
1answer
243 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, ...
7
votes
2answers
681 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
1answer
433 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
1answer
255 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
2answers
224 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
4answers
457 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! ...
6
votes
1answer
573 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
1answer
206 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
1answer
180 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
1answer
625 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
1answer
334 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
1answer
96 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
2answers
327 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
2answers
338 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
1answer
88 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
1answer
79 views

DialogInput on Raspberry Pi

I have a Raspberry Pi 3 with Mathematica 10.3. The following code does not work properly: ...
5
votes
1answer
135 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
1answer
124 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
2answers
336 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
1answer
142 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
2answers
119 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
0answers
137 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
0answers
135 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
3answers
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
2answers
455 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
1answer
570 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
1answer
69 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, ...
4
votes
1answer
80 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 ...
4
votes
1answer
91 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
2answers
2k 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 ...
4
votes
1answer
616 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
1answer
323 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,...
4
votes
0answers
125 views

Background color does not display in InputField unless Appearance option is also specified

I get the same behavior for v10.1.0, v.10.0.2 and v.9 with OS X (10.9.5) : No background color is displayed in InputField if I just set properly the option. For ...
3
votes
3answers
147 views

Local variables in DynamicModule affected by outside evaluation

I was trying to use DynamicModule to create a Input cell that contains a variable assignment, where the variable name is given ...
3
votes
2answers
112 views

Colour panel upon condition of an input field

I have something like a "mortgage calculator", and I now want to colour the panel depending on the inputs that the user has made in my input fields. This would be the code: ...
3
votes
1answer
560 views

How can I change InputField value dynamically

I am storing the values from xlData to the result in a Grid form. I want when I change any of the value in any of the InputFields...
3
votes
2answers
413 views

How to get dynamic results of the values in three InputFields

I have three InputField-s which have no initial value. I would like all InputFields to have a value in descending order and for ...