Re: [web2py] Re: how do I Select in a FORM using a database.

2019-02-06 Thread Ben Duncan
Again, thanks Dave. Seems if you do not use the full feature set of SQLFORM(factory) the IS_IN_DB method does not work. I was using the view to populate the form, but then simply using the sqlform to get the values. My way around this is something like this from the view: {{isession.company_in

Re: [web2py] Re: how do I Select in a FORM using a database.

2019-02-05 Thread Dave S
On Tuesday, February 5, 2019 at 4:31:33 AM UTC-8, Ben Duncan wrote: > > This is to have a drop down list appear. > Currently sqlform.factory works only if you have all the labels etc in the > sqlform.factory. > > I have a custom html using flex boxes and modal in the views but following > these

Re: [web2py] Re: how do I Select in a FORM using a database.

2019-02-05 Thread Ben Duncan
This is to have a drop down list appear. Currently sqlform.factory works only if you have all the labels etc in the sqlform.factory. I have a custom html using flex boxes and modal in the views but following these instructions: http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQL