[TYPO3-mvc] Problem with <f:form.submit> and <<f:form>

Steffen Ritter info at rs-websystems.de
Tue Aug 3 07:42:39 CEST 2010


Am 02.08.2010 10:38, schrieb Phong Nguyen Huy:
> Hi all,
>
> When i am using fluid template engine and extbase extension in the
> developments
>
> <f:form method="post" controller="Blog" action="create" name="newBlog"
> object="{newBlog}">
>          <f:form.submit class="submit" name="Submit" value="Save"/>
>          <f:form.submit class="submit" name="Submit" value="Next Step"/>
> </f:form>
>
> it render 2 buttons, when i click on the button, they always to call
> createAction function in Controller
> But i want to each button will call an other action in the Controller. How
> will i do?
> Many thanks
>
> Regards,
> Phong
you need 2 things:
disable hmac checks in your target actions, an hidden span <f:uri.action 
action="nextstep">
and some javascript
exchange the target url on click and submit


More information about the TYPO3-project-typo3v4mvc mailing list