Bugfix
Detail
#28322
Buttons in form templates: Error because component not (yet) available
In addition to the error, it is unpleasant that you cannot influence the appearance of the button (icon vs. button).
Test
Insert an HTML template in the form editor and define and render a button variable in this template.