14
votes
Accepted
AJAX-style HTTP calls triggered by a variable change
Just like Albert I recommend using the second argument of Dynamic. Furthermore I recommend that you embrace the first A in AJAX, which stands for "asynchronous", so ...
10
votes
AJAX-style HTTP calls triggered by a variable change
I think the standard way to do this is to use the second argument of Dynamic, e.g. like so:
...
9
votes
Enter numbers into a an already existing list
The simplest way is just
data = {{1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}};
InputField[Dynamic[data]]
Dynamic[data]
...
8
votes
Accepted
Limit characters/digits entered into InputField
Here is some code I have for entering a 8 digit id number. So this is "out of the box" as is. If you enter more than 8 digits the extra characters are immediately deleted. You can modify to suit your ...
8
votes
Accepted
Dynamic list in which the sum of the elements is invariant under changes to the elements
Response to edits:
I don't know if I got all your points but this is the final update done by me :)
...

Kuba♦
- 132k
8
votes
Accepted
Hold[Expression] (or similar) in InputField that truly holds the input unmodified
InputField[Dynamic[var], Boxes]
...
7
votes
Accepted
Can a field be used for both input and output (example: exchange rate calculator)
Like Mike said in a comment, the key is to use the second argument of Dynamic. In this case I've built a function ...
6
votes
Enter numbers into a an already existing list
Perhaps, something like:
inpF = DynamicSetting[Map[InputField[#, FieldSize -> 2, Alignment -> Center]&, #, {-1}]] &;
Use it as (...
6
votes
Accepted
5
votes
Accepted
How use TraditionalForm input in InputField?
Manipulate[ToExpression[func, TraditionalForm] /. x -> val, {{val, Pi, "x"}, InputField},
{{func, "", "f(x)"}, InputField[##, String] &}]
5
votes
Rounding problems inside InputField
Since the type Number won't allow formatted numbers to be displayed, set the accuracy (or precision) of the displayed value to control the number of digits:
...
5
votes
Accepted
Evaluating an If expression inside Dynamic
Update. Thanks to Eldo, Dynamic is needed outside the InputField.
...
5
votes
Table with some editable cells
I'll show you hoe to do it for a 3 x 3 matrix of values. You should be able to extend to 3 x 12 without much trouble
First do some initialization.
...
5
votes
Accepted
5
votes
Accepted
5
votes
Accepted
Local variables in DynamicModule affected by outside evaluation
If you work with Boxes you don't have to worry about evaluations:
...
5
votes
Local variables in DynamicModule affected by outside evaluation
Here's a different way to inject the value of name into the cell:
...
4
votes
Dynamically Updating Function
There are a number of issues here:
There is no need to wrap Dynamic around the inner variables of the final input field expression. Indeed, it is harmful as ...
4
votes
Entering scientific notation in an InputField
This Answer is based upon Kuba's comment above regarding two InputFields, so credit should go to him for the idea, this is just an implementation. However, the ...
4
votes
How can I make an InputField with a proper newline/carriage return?
It appears that an undocumented InputFieldBoxOptions -> {"ReturnEntersInput" -> False} does this:
...

Kuba♦
- 132k
4
votes
Accepted
Declare type in InputField
To control the precise behavior of InputFields for various keyboard interactions is not exactly something where Mathematica shines, but there are some possbilities ...
4
votes
DialogInput on Raspberry Pi
I think this is a bug in the RPi version of the software. Consider the following code:
...
4
votes
Accepted
Automatically updating input or inputfield
You can use the option ContinuousAction->True to get the desired behavior, but this option only works for the Boxes, Number and String types. For example:
...
4
votes
Accepted
4
votes
Accepted
How to speed up a text search widget?
The bottleneck is the fact that Pane 'cares' about full content even when only the fraction is needed. We need Pane that fits ...

Kuba♦
- 132k
4
votes
Accepted
Hide part of a CompoundElement in a FormPage
Here's a convenient function for Form* (and other cloud stuff) debugging:
...
4
votes
Accepted
Having three Control Objects for the same Dynamic variable which can override eachother
Note: See also my other answer for a different approach and a discussion of the differences between the two.
You can achieve what you want by introducing a helper variable (...
4
votes
Accepted
Focus on `InputField` upon creation?
You can assign a box id to an input field using BoxID -> "id" and use the function FrontEnd`MoveCursorToInputField ...
3
votes
Accepted
How would I input this truth table into Mathematica or Wolfram Alpha
Using
Assuming I have not made an error (apologies if I have), this reduces to False for all inputs.
...
3
votes
Reading in scientific notation from C++ to Mathematica
For those wishing to transform a full data file with numbers in scientific notation that is output from Fortran (or C, et al.) as "1.6E-19" and ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
inputfield × 142dynamic × 55
gui-construction × 26
manipulate × 16
front-end × 12
hold × 5
dialog-window × 5
graphics × 4
functions × 4
output-formatting × 4
notebooks × 4
string-manipulation × 4
cdf-format × 4
interface × 4
user-interface × 4
eventhandler × 4
function-construction × 3
import × 3
free-form-input × 3
plotting × 2
list-manipulation × 2
matrix × 2
bugs × 2
programming × 2
table × 2