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

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

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