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 ...
  • 69k
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: ...
  • 23.2k
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] ...
  • 106k
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 :) ...
  • 133k
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

Hold[Expression] (or similar) in InputField that truly holds the input unmodified

InputField[Dynamic[var], Boxes] ...
  • 351k
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 ...
  • 69k
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 (...
  • 351k
6 votes
Accepted

Dynamic InputField with syntax highlighting?

Here is what you can do: ...
  • 133k
5 votes
Accepted

How use TraditionalForm input in InputField?

Manipulate[ToExpression[func, TraditionalForm] /. x -> val, {{val, Pi, "x"}, InputField}, {{func, "", "f(x)"}, InputField[##, String] &}]
  • 351k
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: ...
  • 222k
5 votes
Accepted

How do I create a n*n matrix with a Do loop?

Better to use Table: ...
  • 18.3k
5 votes
Accepted

Colour panel upon condition of an input field

Try wrapping the Option value in Dynamic: ...
  • 265k
5 votes
Accepted

Local variables in DynamicModule affected by outside evaluation

If you work with Boxes you don't have to worry about evaluations: ...
  • 125k
5 votes

Local variables in DynamicModule affected by outside evaluation

Here's a different way to inject the value of name into the cell: ...
  • 222k
4 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 ...
  • 61
4 votes

How can I make an InputField with a proper newline/carriage return?

It appears that an undocumented InputFieldBoxOptions -> {"ReturnEntersInput" -> False} does this: ...
  • 133k
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 ...
  • 23.2k
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: ...
  • 125k
4 votes
Accepted

How to make InputField admit multiple entries

Here's something to start with: ...
  • 133k
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 ...
  • 133k
4 votes
Accepted

Hide part of a CompoundElement in a FormPage

Here's a convenient function for Form* (and other cloud stuff) debugging: ...
  • 45.8k
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 (...
  • 26.9k
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 ...
  • 351k
3 votes
Accepted

How to prevent automatic simplification in InputField?

You are looking for this: {InputField[Dynamic[x], Hold[Expression]], Dynamic[ReleaseHold[x]]}
  • 11.3k
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. ...
  • 55.3k
3 votes

How can I name and manipulate several Input Fields?

The usual way to do this is to work with lists or arrays rather than try and create symbols. Here is a list version. ...
3 votes
Accepted

Setting display precision in InputField with Dynamic variable

So, you can use very general answer from Michael E2 (the bottom of his answer) or this quick fix: ...
  • 133k
3 votes

How do I create a n*n matrix with a Do loop?

I suggest you define a function, m to create your matrix. Here are two possible for m Carl Woll ...

Only top scored, non community-wiki answers of a minimum length are eligible