Conditioned default value for a field

Hi, I was wondering if there is a way to have the Default value populated for a Field(choice type) only if a certain Form is used, on the rest it would be empty / selection of choices

Hi there!

Default values can’t be conditioned but there is a workaround! :star_struck:.
You can use DynamicExpressions instead.

DynamicExpressions requires the installation of the automation task Extract Metadata. They will be evaluated when this automation task runs.

fil.doctype.name == "My form name" and "Value it should take if the condition is met" or ""

In the case of choice type fields, use the internal value of the choices.