Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

custom form template - action buttons?

Go to End



Community Member, 1 Post

1 July 2010 at 2:53am


i'm creating CMS module managing some DataObjects using subclass of ComplexTableField. I set custom template file for popup window form like this:

// ...
$table = new ServiceOrdersTableField($this, "ServiceOrders", "ServiceOrder", $section, $tableFields);

template file looks like this:

<form $DetailForm.FormAttributes>

      <div id="FirstName" class="field text">
         <label class="left" for="$DetailForm.FormName_Firstname">First name</label>:

      <div id="Email" class="field email">
         <label class="left" for="$DetailForm.FormName_Email">Email</label>:

   <% if Actions %>
      <div class="Actions">
         <% control Actions %>$Field<% end_control %>
   <% end_if %>

Form inputs renders ok, but problem is with the action buttons - i can't find a way to display it in custom template.
Default 'Save' button is added to the form in ComplexTableField_Popup constructor, but there isnt any documentation about how to display it.

I'd be glad for some working example of custom template buttons or any directions.