Sorry, I'm so confused and hard to explain but...

I have a field which value was set from another table and don't want
to show on the user. I just want to set default value in controller
and submit the form with the fields user filled in.

Do I need to include the field in the view but make it hidden ?

or

Use SQLFORM(...., hidden=dict(FFTSCD='aaa'),


below is a part of my view FFTSCD is the field I don't want to show.
--------------------------------------
{{extend 'layout.html'}}
<h1>Fedex Request Form - {{=keyHJ}}</h1>
Report Date: {{=form.custom.widget.FFTRD}}
{{=form.custom.begin}}
<table>
<tr><td colspan="2"><h3>User Information</h3></td><tr>
<tr><td>Created by: </td><td>{{=form.custom.widget.FFCUSR}}</td></tr>
<tr><td>Created on: </td><td>{{=form.custom.widget.FFCDAT}}</td></tr>

<tr><td>{{=form.custom.submit}}</td></tr>
</table>
{{=form.custom.widget.FFTSCD}}
{{=form.custom.end}}

Reply via email to