Message Boards Message Boards

GROUPS:

set cursor in an InputField

Posted 8 years ago
8304 Views
|
2 Replies
|
0 Total Likes
|

n = 1;x = {Null}; Dynamic[Grid[ Table[With[{i = i}, {i, InputField[ Dynamic[x[[i]], (If[NumericQ[#], x[[i]] = #; AppendTo[x, Null]; n++]) &], ImageSize -> 50]}], {i, n}]]]

I'm trying to create a form to input lists. If you enter a value in the empty InputField, then appears a new InputField for the next value. Is it possible, that the cursor is automaically in this new InputField, so that you can start entering the new value without choosing the InutField with your mouse?

Greetings from Switzerland.

POSTED BY: Juerg Baertsch
2 Replies
Posted 8 years ago

Thx for the link. My skills are not good enough yet to understand the solution there, but I will try it!

POSTED BY: Juerg Baertsch

This answer and links from this topic should help you:

http://community.wolfram.com/groups/-/m/t/489487

POSTED BY: Kuba Podkalicki
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract