hi,
how can I populate a form with the users data which is logged in?
I generated the form with scaffoldFormFields.
the form is only accessable for logged in users, I set this up on
the "Access" Tab.
thx
daniel
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
hi,
how can I populate a form with the users data which is logged in?
I generated the form with scaffoldFormFields.
the form is only accessable for logged in users, I set this up on
the "Access" Tab.
thx
daniel
solved with help from silverstripe IRC channel :-)
it seems there is more help than in this form - very much key questions dont have an answer.
$member = Member::currentUser();
$form->loadDataFrom($member);
daniel