> For the complete documentation index, see [llms.txt](https://docs.cloudio.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudio.io/ui-components/actions/actionsetdefaultvalue.md).

# Set Default Value

## Description:

Set Default Value

Use this action to set default value to an attribute.

### Allowed Parent Components:

1. Trigger Before Create

### Allowed Child Components:

No child available

### Properties

### ➤ Enable Condition

Specify an expression that should be evaluated to a boolean \[e.g. #{dsAlias.attr1} == 'X' && #{dsAlias.attr2} > 1]. If no expression is specified, it will be considered as true.

Allowed Values: An expression which should return boolean after evaluation

### ➤ Value Expression

Specify an expression that should be evaluated to a string or number depending on the target attribute

Allowed Values: Specify an expression that should be evaluated to a string or number depending on the target attribute

### ➤ Default Attribute

Select the attribute to set the value in the value expression as default when the record is inserted

Allowed Values: Select the attribute to set the value in the value expression as default when the record is inserted
