rainlab/builder-plugin

Preload a field with User profile info ?

Incremental92 opened this issue · 2 comments

Hello, in a Builder form, how is it possible to pre-load a "user name" field with the logged user info given by the User Plugin ?
Is this User info accessible from anywhere in October and how ?
Thanks

@Incremental92 that's outside the scope of the Builder plugin. You would want to use the form.extendFields event in a plugin to set the default value to be the username of the currently logged-in user.

Thanks a lot !