Copied to clipboard

Flag this post as spam?

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


  • Peter Cort Larsen 421 posts 1038 karma points
    Oct 06, 2023 @ 11:27
    Peter Cort Larsen
    0

    Read value entered on previous step

    Hi,

    How can i read the entered values from the previous step in multi step form setup.

    I can get all values with data from Model.AllFieldsAsJson()

    But isnt is possible to get a specific value, that were entered in the previous step?

  • Peter Cort Larsen 421 posts 1038 karma points
    Oct 10, 2023 @ 08:42
    Peter Cort Larsen
    100
       @foreach (var p in Model.Pages)
            {
                foreach (var s in p.Fieldsets)
                {
                    foreach (var c in s.Containers)
                    {
                        foreach (var a in c.Fields)
                        {
                             if (a.Alias == "longitude")
                            {
                                <input type="hidden" id="@a.Alias" name="@a.Alias" value="@a.ValueAsHtmlString">
                            }
                          }
                      }
                  }
              }
    
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies