Copied to clipboard

Flag this post as spam?

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


  • Janet Kirklen 102 posts 212 karma points
    Aug 31, 2012 @ 01:06
    Janet Kirklen
    0

    Getting Form Record Fields in SortOrder

    The example file with this workflow is very helpful.  However when using the option to loop through the form fields it would be good to have those ordered by SortOrder.  How do I do that?

    @foreach (var rec in Model.Record.RecordFields)
    {
    <div>@rec.Value.Field.Caption</div>
            <div>@rec.Value.ValuesAsString()</div>
    }

     

  • Michael Lawrence 128 posts 200 karma points
    Sep 01, 2012 @ 04:24
    Michael Lawrence
    1

    Hey Janet,
    Unfortunately I don't have time right now to test this out myself, but possibly this thread has the answer you are looking for:
    http://our.umbraco.org/forum/umbraco-pro/contour/32623-Sort-and-iterate-through-form-fields-with-Razor 

    Please let me know if this works for you. :) 

Please Sign in or register to post replies

Write your reply to:

Draft