Copied to clipboard

Flag this post as spam?

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


  • Rick 36 posts 150 karma points
    Dec 04, 2017 @ 16:35
    Rick
    0

    MemberProperties Field Description

    Hello All,

    I'm not sure this is possible, but I'm giving it a shot anyway.

    I've got a few custom fields in the generic Member type. In creating a registration form I'm able to render the fields using the code in the built-in snippet without a problem.

    What I'd like to do is populate the placeholder with the Description property. This way, when the customer adds/edits the custom fields they don't have to go and edit the code.

    I can manually add the placeholder like this...

    @Html.TextBoxFor(m => regModel.MemberProperties[i].Value, new { placeholder = "First Name" } )
    

    ...but what I want to do is something like...

    @Html.TextBoxFor(m => regModel.MemberProperties[i].Value, new { placeholder = regModel.MemberProperties[i].Description } )
    

    ...but that random guess to retrieve the value doesn't work.

    Outside of doing a manually case/if statement, is there a way to get Description property for the field?

    Thanks in advance....

Please Sign in or register to post replies

Write your reply to:

Draft