Message Boards Message Boards

0
|
5033 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Multi page webform needs not to evaluate parts when you go back a page

Posted 8 years ago

The code below shows a simple multi page webform consisting of 3 steps. For each step going forward i need the code for that step to be evaluated. Only when I am in step 3 and switch back to step 2 (via browser back button (can a previous button be added to a Wolfram webform?)) I want the code NOT to be evaluated again. Especially the GeoGraphics[] function takes time to display a map and that delays the display of the form layout. Is is possible to cache a step by adding mathematica code?

firstform = FormObject[{"x" -> "Number"}];

secondform = FormObject[{"y" -> "Number", GeoGraphics[Here,GeoRangePadding->100 km]}]&;

thirdform = FormObject[{"z" -> "Number"}] &;

CloudDeploy[FormFunction[
  {
   firstform,
   secondform,
   thirdform
   },
  (Row[{#x, #y, #z}]) &
  ], "/test", Permissions -> "Public"
 ]
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