[web2py] Re: returning values from custom form

2016-11-26 Thread Jim Russell
Marlysson, Thanks for the reply. I did figure out how to do it the web2py way. It was not particularly intuitive, but now that I understand it, it makes sense and is pretty powerful. form=SQLFORM.factory( Field('hostnames',"list:string",

[web2py] Re: returning values from custom form

2016-11-26 Thread Marlysson Silva
I don't used the form.accepted but you could use to validate de submit the form and handle.. but basically it's Em sábado, 26 de novembro de 2016 20:20:58 UTC-3, Marlysson Silva escreveu: > > I created a other version for your code, I created a form html ( the hard > way ) and in the

[web2py] Re: returning values from custom form

2016-11-26 Thread Marlysson Silva
I created a other version for your code, I created a form html ( the hard way ) and in the controller get the post vars sent by form: The controller: def form(): host_names = ["google","facebook","amazon","localhost"] marcados = request.post_vars["host"] return

[web2py] Re: returning values from custom form

2016-11-26 Thread Marlysson Silva
I created a other version for your code, I created a form html ( the hard way ) and in the controller get the post vars sent by form: The controller: def form(): host_names = ["google","facebook","amazon","localhost"] marcados = request.post_vars return