Providing an Expression to Calculate a Custom Field's Default Value
When a new row is created for an object, the value of a custom field defaults to null unless you configure a default value for it.
You can supply a literal default value of appropriate type or supply an expression to calculate the default value for new rows. The default value expression is evaluated at the time the new row is created. The expected return type of your field's default value expression must be compatible with the field's type (Number, Date, Text, etc.)
For example, consider a custom CallbackDate
field in a
TroubleTicket
object. If you want the callback back for a new
trouble ticket to default to 3 days after it was created, then you can provide a default
expression of:
CreationDate + 3