# Working with FormFunction

**URL:** <https://community.wolfram.com/t/working-with-formfunction/5754>\
**Category:** Questions\
**Tags:** wolfram-cloud, wolfram-engine\
**Created:** [May 20, 2015, 2:12pm UTC](https://community.wolfram.com/t/working-with-formfunction/5754 "2015-05-20T14:12:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kubapod](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/kubapod/32/18662_2.png) [@kubapod](https://community.wolfram.com/u/kubapod)\
**Post date:** [May 20, 2015, 2:12pm UTC](https://community.wolfram.com/t/working-with-formfunction/5754/1 "2015-05-20T14:12:44Z")

</div>

1. Should I expect multipage FormFunction to work on cloud?

2. Should I be surprised that the FormFunction activated in desktop Mathematica uses $Output to show the form? This causes funny behaviour of form showing in MessagesNotebook if one have such setting for messages/errors/

![7634daily.png](https://global.discourse-cdn.com/wolfram/original/3X/6/f/6ff069c46d6ec53860f3a82ced24ad3552eb61e8.png)

1. Since we are talking about Cloud deployment. Documentation doesn’t seem to be up to date since EmbedCode[CloudDeploy[“hello, world”]] result shown there is a string with an HTML tag while currently, after evaluating the code one gets this interactive panel with iFrame element to copy.

Currently, to get the string I’m using EmbedCode[CloudDeploy[“hello, world”], ImageSize → {200, 200}][[1](https://community.wolfram.com/c/portal/getImageAttachment?filename=7634daily.png&userId=272628)][“CodeSection”, “Content”]. Is this “preferred” way? Shouldn’t this be documented?

 ![10252daily.png](https://global.discourse-cdn.com/wolfram/original/2X/0/0c9571df863747985832f9b0fa492997ac247b78.png)

I’m sorry if those issues are due to my mistakes but I spent some time to try to resolve them.

---

<div class="post-metadata">

**Author:** ![kubapod](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/kubapod/32/18662_2.png) [@kubapod](https://community.wolfram.com/u/kubapod)\
**Post date:** [May 20, 2015, 2:16pm UTC](https://community.wolfram.com/t/working-with-formfunction/5754/2 "2015-05-20T14:16:21Z")

</div>

I see points 1. 1. 2. … when I want to edit the post I see correct 1.2.3… The preview shows something different that the result.

Let this be a question 4…(3)

---

<div class="post-metadata">

**Author:** ![pietervanbijnen](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/pietervanbijnen/32/5316_2.png) [@pietervanbijnen](https://community.wolfram.com/u/pietervanbijnen)\
**Post date:** [May 20, 2015, 3:26pm UTC](https://community.wolfram.com/t/working-with-formfunction/5754/3 "2015-05-20T15:26:31Z")

</div>

Kuba,

Multipage formfunction works fine in the cloud. I tested your code and it works. If I enter 3 in the rooms field it delivers 3 input fields when next is pressed.

```
CloudDeploy@FormFunction[
  {
   {{"rooms", "number of rooms"} -> "Integer"}, 
   Table[{"room" <> ToString[i], "guests in room" <> ToString[i]} -> 
      "Integer", {i, #rooms}] &
   }]

```

If you evaluate in the desktop it is also fine. (note the [] at the end to launch the form)

```
FormFunction[{{{"rooms", "number of rooms"} -> "Integer"}, 
   Function[
    Table[{"room" <> ToString[i], "guests in room" <> ToString[i]} -> 
      "Integer", {i, #rooms}]]}][]

```

Could you be more specific on what it is that is not working? (I tested 10.1 kernel, win7 64)

---

<div class="post-metadata">

**Author:** ![kubapod](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/kubapod/32/18662_2.png) [@kubapod](https://community.wolfram.com/u/kubapod)\
**Post date:** [May 20, 2015, 3:46pm UTC](https://community.wolfram.com/t/working-with-formfunction/5754/4 "2015-05-20T15:46:18Z")

</div>

Thanks Pieter,

1. well, maybe it’s a browser related issue. I use the latest Chrome. Do you too?

2. Do you have Preferences/Messages set to Print to Console?

Kuba

---

<div class="post-metadata">

**Author:** ![pietervanbijnen](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/pietervanbijnen/32/5316_2.png) [@pietervanbijnen](https://community.wolfram.com/u/pietervanbijnen)\
**Post date:** [May 20, 2015, 4:36pm UTC](https://community.wolfram.com/t/working-with-formfunction/5754/5 "2015-05-20T16:36:50Z")

</div>

Kuba,

1. i tested in chrome, firefox and even IE (latest versions) They all run your code

2. Here are my settings.

 ![messages.png](https://global.discourse-cdn.com/wolfram/original/3X/7/e/7e0cad8a243e36dd93f2196d5bc66ea874690f54.png)

---

<div class="post-metadata">

**Author:** ![brucem](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/brucem/32/26319_2.png) [@brucem](https://community.wolfram.com/u/brucem)\
**Post date:** [May 20, 2015, 5:34pm UTC](https://community.wolfram.com/t/working-with-formfunction/5754/6 "2015-05-20T17:34:39Z")

</div>

(I reported the problem with section numbers.)

---

<div class="post-metadata">

**Author:** ![kubapod](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/kubapod/32/18662_2.png) [@kubapod](https://community.wolfram.com/u/kubapod)\
**Post date:** [May 20, 2015, 5:40pm UTC](https://community.wolfram.com/t/working-with-formfunction/5754/7 "2015-05-20T17:40:10Z")

</div>

This it the point, change to Print to Console and try.

And about multipage form. I will do further test to narrow this down.

Thanks

---

<div class="post-metadata">

**Author:** ![kubapod](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/kubapod/32/18662_2.png) [@kubapod](https://community.wolfram.com/u/kubapod)\
**Post date:** [May 20, 2015, 7:05pm UTC](https://community.wolfram.com/t/working-with-formfunction/5754/8 "2015-05-20T19:05:01Z")

</div>

Thanks, I’d have done this by myself but product feedback form gives an error lately or I’m not getting an automatic case creation confirmation mail at all.

---

<div class="post-metadata">

**Author:** ![averykramer](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@averykramer](https://community.wolfram.com/u/averykramer)\
**Post date:** [May 23, 2015, 5:46am UTC](https://community.wolfram.com/t/working-with-formfunction/5754/9 "2015-05-23T05:46:27Z")

</div>

Kuba,

If you get resolution to your problem, please post it here. I tried running your code (copied from Pieter’s post) and was not able to progress to the second page of the multipage form. I am working on a similar project and had this same issue with the example code provided on Wolfram’s Advanced Web Form Creation tutorial. I sent an email to tech support and am currently waiting for a reply. If you find out that it is some sort of settings issue, I’d really like to hear about it.

Thank you
