If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!

Hello,

 

I have been unable to solve a very simple problem, I am new to W2P.

 

I have a date field. I have a customised form and I want the date field to display today's date.

 

I have looked in the web2py docs. It says...

form.vars.name = 'fieldvalue'

so I am trying form.vars.date_stamp = request.now

but it's not working can anyone help?

Answers (0)

Comments (0)

Related content


Hosting graciously provided by:
Python Anywhere