Dear Rohit,
I am Gianni Mocellin from Geneva, Switzerland, and I took notice of your prompt answer to the very interesting question by Mario Veruete.
I have a similar issue but instead of using Print, I have a FormFunction that does not execute from a menu in a Palette.
Thank you beforehand for your help, if possible.
Kindest regards.
Gianni
createQuantity := FormFunction[
   "quantity list" ->
    RepeatingElement[
     CompoundElement[
      <|
       "Property" -> "String",
       "Unit" -> "Expression",
       "Magnitude" -> "Expression"
       |>
      ]
     ],
   AppearanceRules ->
    <|
     "Title" -> "Enter an quantity"
     |>
   ];
createQuantity[]
CreatePalette[
 Grid[
  {
   {
    ActionMenu[
     "Logo",
     {"About" :> NotebookApply[SelectedNotebook[], "Info"]}
     ],
    ActionMenu[
     "Menu 1",
     {
      "Action 1.1" :> createQuantity[],
      "Action 1.2" :> Print[2 + 2]
      }
     ]
    }
   },
  Frame -> All]
 ]