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 ...
user avatar
  • 68.7k
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: ...
user avatar
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] ...
user avatar
  • 106k
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 ...
user avatar
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 :) ...
user avatar
  • 132k
8 votes
Accepted

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

InputField[Dynamic[var], Boxes] ...
user avatar
  • 349k
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 ...
user avatar
  • 68.7k
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 (...
user avatar
  • 349k
6 votes
Accepted

Dynamic InputField with syntax highlighting?

Here is what you can do: ...
user avatar
  • 132k
5 votes
Accepted

How use TraditionalForm input in InputField?

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

Evaluating an If expression inside Dynamic

Update. Thanks to Eldo, Dynamic is needed outside the InputField. ...
user avatar
  • 108k
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. ...
user avatar
  • 106k
5 votes
Accepted

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

Better to use Table: ...
user avatar
  • 17.6k
5 votes
Accepted

Colour panel upon condition of an input field

Try wrapping the Option value in Dynamic: ...
user avatar
  • 264k
5 votes
Accepted

Local variables in DynamicModule affected by outside evaluation

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

Local variables in DynamicModule affected by outside evaluation

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

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

It appears that an undocumented InputFieldBoxOptions -> {"ReturnEntersInput" -> False} does this: ...
user avatar
  • 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 ...
user avatar
4 votes

DialogInput on Raspberry Pi

I think this is a bug in the RPi version of the software. Consider the following code: ...
user avatar
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: ...
user avatar
  • 123k
4 votes
Accepted

How to make InputField admit multiple entries

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

Hide part of a CompoundElement in a FormPage

Here's a convenient function for Form* (and other cloud stuff) debugging: ...
user avatar
  • 45.4k
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 (...
user avatar
  • 23.4k
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 ...
user avatar
  • 349k
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. ...
user avatar
  • 55k
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 ...
user avatar
  • 51

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