This topic is locked
[SOLVED]

 Automatically Load Value In A Field (Add Page)

12/31/2012 7:22:49 AM
PHPRunner General questions
J
joiresende author

Hello
When I want to load the user name I use automatically

($ _SESSION ["Userid"]), as it would be to automatically load any other field, type the name of the city.

C
cgphp 12/31/2012

What is your request? The correct session name is:

$_SESSION['UserID']
J
joiresende author 12/31/2012

My request is how to automatically load it in a field, city name for example.
$ _SESSION ['City'] would be like?

C
cgphp 1/1/2013

Check this article: http://xlinesoft.com/phprunner/docs/process_record_values.htm
You can prefill the fields using the following code in the "Process record values" event:



$values['field_name'] = $_SESSION['City'];



Replace field_name with the real name of the the field.