Is custom user default fields are only editable once a user has been created?


#1

Hi everyone,

I want to add custom fields for users, without having to save twice.

Like notified here : https://getkirby.com/docs/panel/users#custom-user-form-fields

I understand that I have to do it if it’s dependent to a role because a user object needs to be defined first.

But I don’t think that’s necessary for default user form fields since they apply to all.

His there a way to prevent double save by having default fields in the user page the first time ?

Thanks a lot !


#2

No, no matter if you want to have fields that apply to all users or to a specific user role, the user object has to exist first. And the user object is only created once the user is saved. Not ideal, but that’s just the way it is, I’m afraid.


#3

Indeed it’s not ideal. In my actual case there will be a whole bunch of users so I guess the double save will become a reflex.
Anyway, thank you for your quick reply!