Dear All,
Impossible to have a form to run when called from ActionMenu in a Palette:
I create a FormFunction "form":
Clear[form];
form = FormFunction[
"Information" ->
RepeatingElement[
CompoundElement[
<|
{"Property", Style["Property", 16, Black, Bold]} -> "String",
{"Unit", Style["Unit", 16, Black, Bold]} -> "String"
|>
]
],
AppearanceRules ->
<|
"Title" -> " ",
"Description" ->
Column[{Style["Enter your information", Bold, 20, Red]}]
|>
];
1 (of 2). The following evaluates the FormFunction directly in the notebook (which is what I want)
form[]
2 (of 2). But the next code do not return in the notebook the FormFunction evaluated as I want, it returns instead a unevaluated FormFunction[___], which is not the same as 1.
CreatePalette[
Grid[
{
{Style["Data", FontSize -> 14, FontWeight -> Bold],
ActionMenu[
"Create",
{
"Create an element" :>
NotebookApply[
SelectedNotebook[],
Cell[
BoxData[
ToBoxes[form]
],
"Output"]
]
}
]
}
}
]
];
Thank you beforehand for some help because I have been struggling with that, trying many many possibilities, for more than two weeks.
Regards.
Gianni Mocellin
Attachments: