Hi, Thank you both for your reply.
@Anthony In 2012 I had an issue related to validation, the following solution was given: including nodeID as a hidden field (if you're willing to have nodeID "published" on the source page, the normal user wouldn't see this) form = SQLFORM(db.tie, hidden=dict(nodeID=6)) sends a hidden field "nodeID" with 6 as value --> it's in request.vars --> the validator fires >From your answer I learn that I either did not understand the 2012 solution or now web2py handels hidden fields differently. @Leonel Your code seems seriously WTF, why do you have a default='' for a > notnul=True field? > Because of Massimo's reply to this question: https://groups.google.com/forum/#!topic/web2py/kwQBxeKy0ug > Why do you want to validate a field that is not writable? > It's a foreign key which most of the time (not always) gets its value in a function: nodeID = auth.user.nodeID # other code db[table].nodeID.default = nodeID appadmin ignores writable and readable and checks if the node is in de database. Kind regards, Annet -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

