I have a blocking Dialog that is taking input from another dialog internally. This is how I have coded

  Button["Y", (name = DialogInput[InputField[]]), Method -> "Queued"]

But the inner Dialog never appears after pressing Y button. If I use preemptive method then it shows

DialogInput::nprmtv: DialogInput is not currently supported within preemptive evaluations.

How can I open an inner DialogInput from an outer DialogInput ?

  • $\begingroup$ Unless I'm missing something, it is not possible until you close the first one. But maybe you can get away by using something like: DialogInput[DynamicModule[{x = 1}, Column[{ Dynamic[x], Button[ "adjust x", (CreateDialog[ DynamicModule[{}, Column[{Slider@Dynamic@x, Dynamic[x], DefaultButton[NotebookClose[]]}], InheritScope -> True]])], DefaultButton["DialogReturn", DialogReturn[x]] }] ] ] let me know if this fits your needs. $\endgroup$
    – Kuba
    Apr 28, 2017 at 13:01
  • $\begingroup$ It was asked before: mathematica.stackexchange.com/q/111651/5478 but also iwthout a general solution. $\endgroup$
    – Kuba
    Apr 28, 2017 at 13:02


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.