Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Frans de Jong 548 posts 1840 karma points MVP 3x c-trib
    Feb 11, 2016 @ 13:44
    Frans de Jong
    0

    Fill hiddenfield Umbraco Forms CurrentMemberId

    I'd like to fill a hiddenfield with:

    @umbraco.cms.businesslogic.member.Member.GetCurrentMember().Id

    Is this possible? I can't find anything in the docs...

    Frans

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Feb 11, 2016 @ 13:52
    Dennis Aaen
    1

    Hi Frans,

    Have you tried to use the bracket { } syntax.

    Member Id {member.id}

    Hope this helps,

    /Dennis

  • Frans de Jong 548 posts 1840 karma points MVP 3x c-trib
    Feb 11, 2016 @ 13:55
    Frans de Jong
    0

    Oh wow... That was way to easy...

    Is there a list of alle the properties I can get this way?

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Feb 11, 2016 @ 14:02
    Dennis Aaen
    100

    Hi Frans,

    So it works like it should? If you go to Umbraco members and the document type for the member then you can see the alias of the properties.

    enter image description here

    And then all the generic properties.

    enter image description here

    If you add a new property to your member and give it the alias of custom, then it´s member.custom

    /Dennis

  • Frans de Jong 548 posts 1840 karma points MVP 3x c-trib
    Feb 11, 2016 @ 14:04
    Frans de Jong
    0

    Thanks, this was way easyer than I thought.

    It all works.

Please Sign in or register to post replies

Write your reply to:

Draft