This topic is locked

Lookup wizard

6/15/2006 4:29:14 PM
PHPRunner General questions
adamdidthis author

Hi,
I am trying to set the default value of a lookup wizard that appears on the edit page only to be $_SESSION["UserID"] I have put that in default value field but it does not work, i have also tried @$_SESSION["UserID"] and its still the same. Where am I going wrong?

Sergey Kornilov admin 6/15/2006

Default values work on Add page only.
If you like to save user who updated this this record use can use Events.

Make sure this field appears on the Edit page as hidden and use the following code in BeforeEdit Event:

$values["EditedBy"] = @$_SESSION["UserID"];