This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

program.es
program.es

How do I set default value for text or number fields by YAML way? I have tried following configuration but not work.

read_only:
    label: My read only field
    type: text
    attributes:
        value: default text
    containerAttributes: 
        value: default text
    default: default text
    readOnly: true

Last updated

program.es
program.es

default: default text

Works fine on new record.

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.