Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.4K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Does the URL Redirect Example from FormFunction work correctly?

Posted 11 years ago
2 Replies

That was likely a temporary bug with HTTPRedirect. That code seems to be working now. However, I would suggest editing it to use the name of the input variable. I think much easier to read/understand:

CloudDeploy[
 FormFunction[{"Website" -> <|"Interpreter" -> "SemanticURL", "Input" -> "Wikipedia"|>}, 
  HTTPRedirect[#Website] &, 
  AppearanceRules -> <|"Title" -> "WebGo!", 
    "Description" -> "Write the name of any website, and we will take you there!", 
    "SubmitLabel" -> "Go!"|>]]
POSTED BY: Chad Knutson

I tried it with both the link in the docs and a newly-deployed one, and it worked fine. Could you post a picture of the error message?


By the way, I like WebGo. Much catchier than Google, don't you think?

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