Jump to:

1971 Posts in 1275 Topics by 607 members

Form Questions

SilverStripe Forums » Form Questions » populate form with users data

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1770 Views
  • danzzz
    Avatar
    Community Member
    175 Posts

    populate form with users data Link to this post

    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

  • danzzz
    Avatar
    Community Member
    175 Posts

    Re: populate form with users data Link to this post

    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

    1770 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.