Questions about the Mathematica control type InputField.

learn more… | top users | synonyms

17
votes
4answers
650 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?
34
votes
3answers
1k 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, ...
14
votes
2answers
299 views

Rounding problems inside InputField

Consider the following InputField InputField[Dynamic[h2, If[# === Null, h2 = h2, h2 = Round[#, 0.001]] &], Number] The ...
2
votes
1answer
281 views

How to apply a free-form input Function using InputField

I am trying to take a free-form input Function to create a list using NestList. ...
11
votes
1answer
584 views

InputField does not update correctly

By fiddling with Vitaliy's solution for a small GUI, I've come accross this particular behaviour of InputField: ...
8
votes
2answers
319 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 ...
5
votes
4answers
238 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! ...
4
votes
2answers
2k 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 ...
1
vote
0answers
79 views

Substitute for 'InputField' in Wolfram Demonstration

My application relies on the ability of users to enter text, and has several settings with a huge range of potential values best entered as strings (to comply with Wolfram's admonition to "choose your ...
9
votes
4answers
466 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 ...
10
votes
2answers
390 views

Palette with editable InputField

I need a Palette with editable InputField. When I try the code ...
8
votes
1answer
178 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, ...
4
votes
1answer
187 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 ...
8
votes
0answers
127 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. ...
7
votes
2answers
353 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. ...
4
votes
2answers
150 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 ...
2
votes
1answer
222 views

Dynamically Updating Function

I use Mathematica 8 and am working with DynamicModule. I'm trying to enter a function in an InputField then later apply it to two values entered in subsequent Input Fields. The function just does not ...
1
vote
1answer
127 views

How to preserve focus on InputField after Print?

If you press Enter in the example below it should become clear that test is being adding to the textbox instead of the current ...
6
votes
1answer
170 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 ...
4
votes
2answers
223 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 ...
2
votes
1answer
182 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 ...
2
votes
1answer
100 views

Interaction of InputField with Row (but not Column, Grid or Panel)

In Mathematica 9, there's an interaction between InputField and Row. The following fragment (without or without ...
0
votes
1answer
179 views

How to build an interface that plots an equation given as text by a user?

I would like to create a window where a student may enter an equation and, by clicking on a button, the function gets plotted. In the original Spanish: Quiero realizar una ventana en la cual el ...
0
votes
1answer
214 views

How to compute values only if input fields are filled?

In the following code how can I keep the DynamicModule from computing values if the input values are not all filled? If I don't specify default values it will show the code used to compute the values ...
-6
votes
1answer
410 views

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 ...