FieldValue Initial Value Properties

The Set Initial Value To properties designate how to initialize the field.

Use the Set Initial Value To properties to initialize field values.

 

Options

Description

Current date

The field is initialized to the current date only of the system running your application.  The time is unspecified.

Current date and time

The field is initialized to the current date and time of the system running your application.

Logged in user ID

The field is initialized to the ID of the currently logged in user.  This option is available only when application security is enabled.

Constant

The field is initialized to the constant value you specify.  The constant you specify should appropriately match the underlying database field type and field validation type, if any.

URL parameter

The field is initialized to the value passed into the page via the specified URL parameter.  See Using URL Parameters for details on passing data via URL parameters.

Custom function

The field is initialized to the value returned by a custom function in your code.  See Calling Custom Code Functions for details on calling custom functions.

Note: If you initialize a field for which the Display Foreign Key As option is set, the initialization value “supersedes” the Display Foreign Key As setting and the database will not be queried to display the string value corresponding to the initialization value unless the Display Style is a list box, dropdown list, or radio button list.  The list box Display Styles require the database to be queried to determine all of the foreign key values in order to build the list; this is not true for Display Styles that display only a single value – the initialization value.

See Also

FieldValue Tag