[Zope3-Users] How to modify the action value in a form

Simon Elbaz simon.elbaz at free.fr
Thu Nov 12 09:13:35 EST 2009


Hi,
I access a z3c.form with the following url:
http://localhost:9060/++skin++Adama/mysite/kv/object_portfolio/OBJ_REF1/hf

A stack consumer (from z3c.traverser.stackinfo.consumer) consumes the 
arguments kv/object_portfolio/OBJ_REF1.

Finally, in the rendered form, I get:

<div id="content"><form action="http://localhost:9060/++skin++Adama/mysite/hf/index.html"
      method="post" enctype="multipart/form-data"
      class="edit-form" name="form" id="form">

So when the form is submitted, it is submitted to the following URL (which does not exist):
http://localhost:9060/++skin++Adama/mysite/hf/index.html


How can I modify the action value in order to get:
<div id="content"><form action="http://localhost:9060/++skin++Adama/mysite/kv/object_portfolio/OBJ_REF1/hf/index.html"
      method="post" enctype="multipart/form-data"
      class="edit-form" name="form" id="form">

Thx
Simon

 






More information about the Zope3-users mailing list