Group Abstract Group Abstract

Message Boards Message Boards

Customizing embedded webform

Posted 11 years ago

Here is a form embedded in a webpage:

enter image description here

This is the form:

fr = FormFunction[{ "name" -> "String", "question" ->  "TextArea" },   Grid[{{"your name is"}, {#name}, {"your question is"}, {#question}},  Alignment -> {Center, Baseline}] &, "HTML"]
CloudDeploy[fr, Permissions -> "Public"]

EmbedCode used is:

<iframe src="https://www.wolframcloud.com/objects/YourGeneratedUUID?_embed=iframe" frameborder="0" width="100%" height="400" /> </iframe>

My question is how to get this form embedded in stealth mode. More specific: the background color and the form color (currently) white need to be made the same. The lower part of the embedded form is now gray and needs to be white.

Also the “powered by” wolfram bar (badge) can be simplified. The next link explains and shows even html. The question is does anyone know where to put the html code and how to connect to the embedded form. http://www.wolfram.com/knowledgebase/source-information/

3 Replies
POSTED BY: David Reiss

FormLayoutFunction will do some of the things you want. For example, here I set the input labels to be White.

f = FormFunction[{"name" -> "String", "question" -> "TextArea"}, 
  Grid[{{"your name is"}, {#name}, {"your question is"}, {#question}},
     Alignment -> {Center, Baseline}] &, 
  FormLayoutFunction -> 
   Function[
    Grid[{{Style[#["name", "Label"], White], Style[#["name", "Control"],  White]}, 
         {Style[#["question", "Label"], White], Style[#["question", "Control"], White]}}, Alignment -> Left]]]

I don't know how to "hide" the boxes or "simplify" the "Powered by Wolfram". The wolfram license agreement on the page you linked states: 1. You will not remove, obscure, or otherwise disable the footer attribution information and links on Wolfram-produced forms.

So maybe you shouldn't do this!

As for where to put the html, I'm not sure what you mean. The simple answer is, in a web page. When you view the web page in a browser, the form will appear basically the same as if you visit it's url directly.

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