Default value Javascript

Description

Specify the Javascript to execute to compute the default value for this field in the list Detail View when a new row is added to the List.

Discussion

Your Javascript must 'return' the value. For example, your code might end with:

return 'Alpha';

Your code can access the 'this' context to get a pointer to the List object. For example, to set the default value to the value in the Lastname field from the last viewed record:

return this.getData(this.selection[0]).Lastname;