Can you show your code? It should be in form.vars.id after submission. Anthony
On Saturday, August 25, 2012 9:16:42 AM UTC-4, pylix wrote: > > I'm having trouble getting the server to access the id field upon > submission of my SQLFORM > I did not define my own id field in the model, i have no issue with the > auto-created one except that > I can't figure out how to store the id in a variable for view use. > > all other fields are accessible using forms.vars i.e form.vars.name, > form.vars.email, etc.. > but form.vars.id always ends up as None. > > The id field values are recorded and can be queried > or viewed using appadmin database administration > but, what I'm trying to do is use the Id# in a view that > i want to display after form submission. > > is there a special way to get the id# that the > record being inserted to database would be > if it validates? > --

