Community RSS Feed
http://community.wolfram.com
RSS Feed for Wolfram Community showing any discussions in tag Wolfram Cloud sorted by activeStandardForm in Cloud FormFunctions
http://community.wolfram.com/groups/-/m/t/1152337
[Cross posted on Mathematica.stackexchange](https://mathematica.stackexchange.com/q/152218/5478)
## Example
choices = {
"label 1" -> 1
, Column[{"label", 2}] -> 2
, Framed[3] -> 3
, HoldForm @ Sum[i, {i, 0, ∞}] -> 4
};
CloudDeploy @ FormFunction[
{ "a" -> <|
"Interpreter" -> choices
, "Control" -> (RadioButtonBar[##, Appearance -> "Vertical"] &)|>
}
]
[![enter image description here][1]][1]
So by default StandardForm is not supported (though e.g. `Column` is).
## My attempts to fix it
I tried to force `"HTMLCloudCDF"` as an export form for those elements:
...
"Interpreter" -> MapAt[ExportForm[#, "HTMLCloudCDF"] &, choices, {All, 1}]
...
[![enter image description here][2]][2]
But it is not supported.
At the end I am using: `ExportForm[#, "SVG"] &` but it makes fonts inconsistent with the rest of the form and selected item's label gets an ugly red frame if it is an image:
[![enter image description here][3]][3]
## Question
How to use arbitrary expressions in form functions layout? Is there a better way than SVG? Shouldn't it work out of the box?
## Related
https://mathematica.stackexchange.com/q/123894/5478
[1]: https://i.stack.imgur.com/YJpVB.png
[2]: https://i.stack.imgur.com/K3oYp.png
[3]: https://i.stack.imgur.com/gnMwj.pngKuba Podkalicki2017-07-25T08:08:26Z