Extending account.yaml

Hello everyone!

Thank you for all your hard work. I searched through the forum and didn’t find an answer to my question. I would like to add couple fields to each user file by extending system/bluerints/user/account.yaml.

I tried different options, but didn’t come up with the solution. I would appreciate any help on this.

Thank you!

1 Like

Ok, the best solution comes by itself after you asked for help. In case if someone will have the same issue, here’s what worked for me:

Create a new yaml file with the following path:
user/blueprints/user/account.yaml

To extend the account form you can add smth like this:

title: Account
'@extends':
    type: account
    context: 'blueprints://user'

form:
    fields:
        custom_field1:
            type: number
            label: Custom Field 1
            validate:
                type: number
        custom_field2:
            type: number
            label: Custom Field 2
            validate:
                type: number
        custom_field3:
            type: number
            label: Custom Field 3
            validate:
                type: number
2 Likes