Questions about the Mathematica control type InputField.

learn more… | top users | synonyms

18
votes
4answers
798 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?
37
votes
3answers
2k 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, ...
15
votes
2answers
367 views

Rounding problems inside InputField

Consider the following InputField InputField[Dynamic[h2, If[# === Null, h2 = h2, h2 = Round[#, 0.001]] &], Number] The ...
9
votes
2answers
381 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 ...
2
votes
1answer
450 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
654 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: ...
15
votes
4answers
604 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 ...
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 ...
2
votes
0answers
126 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 ...
12
votes
2answers
469 views

Palette with editable InputField

I need a Palette with editable InputField. When I try the code ...
8
votes
1answer
190 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
460 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. ...
8
votes
0answers
151 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. ...
4
votes
2answers
216 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
311 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 ...
6
votes
1answer
175 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
290 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 ...
3
votes
1answer
120 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,...
2
votes
1answer
223 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
107 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
241 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 ...
-7
votes
1answer
483 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 ...