How to add a user id

How to add a user id

whitbaconwhitbacon Posts: 40Questions: 2Answers: 0
edited April 2013 in Editor
I am trying to figure out how to add a userid from a php session variable to a table. I would like to know who created the record, but don't want the user to know it exists in datatable or editor at all. I have a feeling using onpresubmit may be the ticket, but have no idea what that code would look like.

Replies

  • whitbaconwhitbacon Posts: 40Questions: 2Answers: 0
    got it! took me a second
    [code]
    "events": {
    "onPreSubmit": function (o) {
    o.data.userid = '1';
    }
    }
    [/code]
  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    Perfect - nice one :-)

    Allan
This discussion has been closed.