Hello!! I have a Form for this table, but I'm only want to get the 'name' 
field from the user input.
the other fields I need fill them from javascript vars...

Model:
db.define_table('fences',
            Field('customer', db.customer, label='Cliente', notnull=True),
            Field('name', length=160, label='Nombre', notnull=True), 
            Field('type', length=12, label='Tipo', notnull=True),
            Field('definition', length=120, notnull=True),
            signature
            )
Controller:

def fences():
    return(form=SQLFORM(db.fences).process())

View:

<script>
var get_type;
var definition = [];
</script>

{{=form.custom.begin}}
Name: {{=form.custom.widget.name}}
{{=form.custom.submit}}
{{=form.custom.end}}

The customer field I need collect from my function: 
get_customer_id(auth.user.id)

Thanks in advance.
Christian.

-- 



Reply via email to