Can someone clarify how to perform a DialogInput
operation within a Button
?
I wrote some code for that but it's not working.
Button["Enter value",
DialogInput[{name = ""},
Column[{InputField[Dynamic[name], String],
Button["Hi", Dynamic[name]]}]]]
My problem is this — when I run the above code, the given text is displayed but when I click on the button, the actual operation is not being carried out.
DialogInput
works as you expect and want when run in the notebook and not from a button? $\endgroup$Method->"Queued"
to the button, but even so, is that your only problem? $\endgroup$Method-> "Queued"
?? $\endgroup$