i created a form with
form = form_factory(
            Field('role', requires = IS_NOT_EMPTY(), label="Name"),
            Field('description', 'text')
            )

and rendered it with
{{=form.custom.begin}}
<div id="create_group">
    <h3>Description</h3>
    <table id='main_frm'>
        <tr>
            <th>Name</th>
            <td><div>{{=form.custom.widget.role}}</div></td>
        </tr>
        <tr>
            <th>Description</th>
            <td><div>{{=form.custom.widget.description}}</div></td>
        </tr>
    </table>
    <h3>Select Members</h3>
    {{=select_members_table}}
    <input type="submit" value="Create Group" name='submit'/>
    {{=form.hidden_fields()}}
{{=form.custom.end}}
</div>

now i would expect form.hidden_fields() to render the formkey, but it
does not, it just renders
<div class="hidden"><input name="_formname" type="hidden"
value="no_table_create" /></div>
<div class="hidden"><input name="_formname" type="hidden"
value="no_table_create" /></div>
(yes twice, no clue why)

did I miss something?

Reply via email to