CreateDialog is one of the features that is not available to Free CDF users. Is it possible to create the behavior of the test code below in a way that can be used in a CDF?

test = Column[{Button["Input the function", 
    CreateDialog[{"Input the function", InputField[Dynamic[f1]], 
      DefaultButton[DialogReturn[f = f1]], CancelButton[]}]],
     Plot[f, {x, 0, 10}, PlotLabel -> TraditionalForm[f]]]}]

Note: edited at the request of the author. Original text can be found in the question history.

  • $\begingroup$ Dialogs are disabled in FreePlayer. $\endgroup$
    – Kuba
    Apr 9 '16 at 18:12
  • 1
    $\begingroup$ Possible duplicate of Why are some Buttons not working in CDFPlayer? $\endgroup$
    – Kuba
    Apr 9 '16 at 18:18
  • $\begingroup$ @kuba, what is the solution for this then? do you have any other way to do this? thanks $\endgroup$ Apr 9 '16 at 18:24
  • $\begingroup$ Nothing general. You could try to make your app to be one layer of the Overlay while what you want to be displayed would be another one. $\endgroup$
    – Kuba
    Apr 9 '16 at 18:31
  • 3
    $\begingroup$ Based on the conversation in the comments, this post should really be labeled "How to emulate a CreateDialog feature that works in the Free CDF player"; this change would result in a valid and valuable question that's not a duplicate in my opinion. $\endgroup$ Apr 10 '16 at 1:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.