3
$\begingroup$

Here’s the FormPage documentation Basic Example:

CloudDeploy[FormPage["country" -> "Country", GeoGraphics[#country] &]]

This creates a CloudObject, but when I try to access it I’m asked to Sign In to the Wolfram Cloud. How do I create a FormPage that does not require a Sign In?

$\endgroup$
  • $\begingroup$ I just created two cloud objects, one with private and one with public permissions. Pointing my browser to the private one asks for a login, but the public one does not require login. To better keep track of your cloud objects, give them each a different name, for example: CloudDeploy[FormPage["country"->"Country",GeoGraphics[#country]&],FileNameJoin[{$CloudRootDirectory,"FormPageGeoGraphicsPublic"}],Permissions->"Public"] $\endgroup$ – Christopher Haydock Dec 3 '15 at 15:01
  • $\begingroup$ @ChristopherHaydock When I running your code,I get a wrong warning is " *** is not a valid cloud object." $\endgroup$ – yode Dec 3 '15 at 19:02
  • $\begingroup$ OK, I can reproduce the problem: If you just copy and past the above code, then unicode 200C "Zero Width Non-Joiner" and unicode 200B "Zero Width Space" characters get included at the line break and cause the error you observed. One way to solve this is by pasting into your previous code just the cloud object name: FileNameJoin[{$CloudRootDirectory,"FormPageGeoGraphicsPublic"}] $\endgroup$ – Christopher Haydock Dec 3 '15 at 21:22
  • $\begingroup$ @ChristopherHaydock Thanks very much,If you give a answer in following,I'll accept it to help the everyone. $\endgroup$ – yode Dec 3 '15 at 22:24
4
$\begingroup$

Sign In to desktop Mathematica before deploying a FormPage to the Wolfram Cloud:

Wolfram Cloud Mathematica Sign In

By default a FormPage is deployed with Permissions -> "Private". It will be much easier to identify and keep track of CloudObjects if they are named:

CloudDeploy[FormPage["country" -> "Country", GeoGraphics[#country] &],
   FileNameJoin[{$CloudRootDirectory, "FormPageGeoGraphicsPrivate"}]]

Copy web address from CloudObject, paste into your browser, and Sign In:

Wolfram Cloud Firefox Sign In

The browser will now open to the FormPage as shown in the FormPage documentation Basic Example.

Next deploy a public FormPage:

CloudDeploy[FormPage["country" -> "Country", GeoGraphics[#country] &],
   FileNameJoin[{$CloudRootDirectory, "FormPageGeoGraphicsPublic"}], 
   Permissions -> "Public"]

This FormPage will not require any Sign In. Prove it by signing out on the top right menu of your Wolfram Development Platform before pasting the public web address into a new browser window.

$\endgroup$

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.