Message Boards Message Boards

How to add check boxes to FormFunction

Posted 10 years ago
kform = FormFunction[{"First Name" -> "String", 
        "Last Name" -> "String", "Email" -> "EmailAddress", 
        "Product" -> CheckboxBar[{}, {"A", "B", "C"}],
        "My Product " -> {A, B, C},
        "Type" -> {"2 ", "1 "}}, fu];

enter image description here

Why does the CheckBoxBar not work ? What Am I doing Wrong ?

POSTED BY: Ninad Faterpekar
7 Replies
POSTED BY: Chad Knutson

Hello. I want to create a form almost exactly as the one in this example, but I want to send an email to a specific email address with the information in the form when the person filling it clicks on submit. How can I do that? Thanks!

POSTED BY: Raul Sananes
POSTED BY: Raul Sananes
POSTED BY: Chad Knutson

Thanks Chad, what I needed was to change the comma "," for "<>". So this solves it:

CloudDeploy[FormFunction[{"Enter one character and hit ENTER" -> "String"}, SendMail["testtest@wolfram.com", {"First Phrase"<>"Second Phrase"}]&],Permissions = "Public"]

CloudDeploy[FormFunction[{"Enter one character and hit ENTER" -> "String"}, SendMail["testtest@wolfram.com", {"First Phrase"<>"Second Phrase"}]&],Permissions = "Public"]
POSTED BY: Raul Sananes

Raul, You could try this too

CloudDeploy[
 FormFunction[{"Enter one character and hit ENTER" -> "String"}, 
  SendMail["To" -> "test@wolfram.com", 
    "Body" -> StringJoin["First Phrase,", "Second Phrase"], 
    "Subject" -> "Hello"] &], Permissions -> "Public"]

This gives me a email like :

enter image description here

POSTED BY: Ninad Faterpekar

That also works great. Thanks Ninad!

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

Group Abstract Group Abstract