joelesvensson
joelesvensson

Hi! In a plugin i'm developing I have a model that points to one admin user. In the backend interface to create these models, I want the dropdown to default to the currently logged in user. What is the best way to do that?

Last updated

Renatio
Renatio

Hi,

you can try to use http://octobercms.com/docs/backend/forms#filter-form-fields and set default property to:

BackendAuth::getUser()->id

Last updated

joelesvensson
joelesvensson

Thanks! I'll try it

1-3 of 3