<https://lh3.googleusercontent.com/-gp13bnRa4Vk/VkVpcgCROCI/AAAAAAAADoo/g-w-j17sqsY/s1600/Screenshot%2Bfrom%2B2015-11-13%2B09%253A10%253A31.png>
Hi,

Following is a simple form where users can enter their phone numbers. A 
user can enter as many numbers as he wants. How can I make it to take 
another free-text field as input like service provider name? Seems to be a 
simple thing but not sure how to achieve?

model/db.py
db.define_table('config',
    Field('cell_phones', 'list:string'), label=T('Dispatchers Cell Phone #s'
))


controllers/phoneconfig.py
form = crud.update(db.config, 1)


views/phoneconfig/index.html
{{extend 'layout.html'}}
{{=form}}

Thanks,
AT

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to