Message Boards Message Boards

0
|
2482 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Mathematica Forms in the cloud

Why does the following Form not calculate and display SMIX[]

SMIX[T1_, T0_, t_] ::= 
 Module[{ rv = t + 5 T0 + 100 T1;},
    rv
 ]

Should show one input box each for T1,T0 and t and the results of evaluating the SMIX[] function when the Submit button is pressed; but cloud evaluation link fails ! Why?

CloudDeploy[
 FormFunction[  
  "SMIX2" ->  RepeatingElement[ "S-MIX = " <> ToString[SMIX[#T0, #T1, #t]] &,
    CompoundElement[{"T0" -> "Number", "T1" -> "Number", "t" -> "Number"}]], 
  AppearanceRules -> {"Result" -> "ResultBelow"}, 
  AppearanceRules -> {"Description" -> "Segment 1"}], Permissions -> "Public"]

Out[75]= CloudObject["https://www.wolframcloud.com/obj/28476937-7ed2-4be8-9195-\
03195aaceb34"]
Posted 3 years ago

Before deploying, make sure the FormFunction works. Evaluating just the FormFunction from the code example results in

RepeatingElement::syntax: The second argument of RepeatingElement is
not of the form max, {min, max}, {init, {min, max}}.

FormFunction::nvldform: FormFunction expects a rule, a list of rules,
an association or a FormObject as first argument.
POSTED BY: Rohit Namjoshi
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