Application management : Configuration : Self-Service : Web configuration : Configuring generic features : Using macros to auto-populate fields on web forms
Using macros to auto-populate fields on web forms
You can auto-populate data fields by using macros as default values.
* 
This feature is available on search fields and on all pages that allow user input.
Procedure
1. In ProCenter modules > Web configuration or Self-Service modules, select a relevant web definition. For example, Service requests.
2. On the Details panel, expand the node structure, for example at Add page > Add block and select a search field.
3. On the Field properties tab on the right, select the Default value field and enter a relevant macro.
For example:in the Requestor field on the Add block > Default value field, enetr the &PERSON macro, to default the requestor with the logged-in person.
4. In the data section, select either of the fields from the following table.
Macro
To be used in …
Displays…
&Person
Person field
The name of the person linked to the account (as reference field).
&Username
Any text field
The user name of the person linked to the account.
&UserID
Account reference field
The user name of the person linked to the account.
&Person.Property
Property field
The property of the person linked to the account.
&Person.Space
Space field
The space of the person linked to the account.
&Person.WorkSpace
Workspace field
The workspace of the person linked to the account.
* 
If multiple workspaces are linked to a person, the first workspace of the person (depending on the occupancy on the reference date) is displayed.
&Person.CostCenter
Cost Center field
The cost center of the person linked to the account.
&Person.Address
Address field
The address of the person linked to the account.
&Person.Department
Department field
The department of the person linked to the account.
5. Click Save to apply your changes
6. If a user submits a service request, the fields you have configured will contain auto-populated data.
* 
Use these macros in the appropriate fields, otherwise the web page will display errors.
Service requests are based on standard orders defined in Supporting data . Note that field values defined in the standard order overrule the macros used as default values in the service request.