Hey,
for example when creating forms it would be nice to have DisplayForms as labels. But a problem is that the argument will be evaluated, which is not suitable when using a DisplayForm as a label.
here is a minimal example to show what I would like to do:
d = {2, 3, 4, 5}; c = {1, 2, 3, 4, 5, 6, 7, 8};
frac = Module[{}, RandomChoice[d]/RandomChoice[c]];
FormFunction[{
"first" -> <|"Interpreter" -> "Number",
"Label" -> DisplayForm[frac] + DisplayForm[frac]|>}, f,
AppearanceRules -> {"SubmitLabel" -> "Go!"}}
]
this will yield an evaluated fraction as show in the screenshot. What I would like is to have the label unevaluated, in this example, a sum of two fractions.
Of course in this case using StringForm would be a workaround. But I would like to know whether there is some way e.g. using Hold, Inactivate or such to generally prevent evaluation for using DisplayForms as labels.
Attachments: