[FLOW3-general] Edit Form with two seperate target actions

Jan Greth jan at greth.me
Thu Sep 27 15:11:27 CEST 2012


Hey Folks,

I have an simple Edit-form like the one autogenerated by the FLOW3 CLI.
Looks like this:

/*********************************************************************/
<f:form action="update" object="{location}" name="location">
   <ol>
     <li>
       <label for="title">Title</label>
       <f:form.textfield property="title" id="title" />
     </li>

     <li>
       <label for="street">Street</label>
       <f:form.textfield property="street" id="street" />
     </li>

[...]

     <li>
       <f:form.submit value="Save and back"/>
     </li>
   </ol>
</f:form>
/*********************************************************************/

But now I have the problem that I would like to have two send buttons.
One for "Save and back" and one just for "Save" (User stays on page)

How would you implement it?

I had thoughts of writing a new action - but Action is set in form head 
not in button...

Bye,
Jan


More information about the FLOW3-general mailing list