Copied to clipboard

Flag this post as spam?

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


  • Viktor 2 posts 72 karma points
    Aug 01, 2019 @ 14:31
    Viktor
    0

    Disabled input fields are returning empty value

    So I have inputs that are disabled because they have prefilled values from a service. But when it is posted the field values are empty and nothing registers into the Umbraco Form entries.

    @foreach (var field in Model.Fields)
    {
        var fieldValue = field.GetValue();
    }
    

    Does someone know how this can be bypassed?

  • Viktor 2 posts 72 karma points
    Aug 02, 2019 @ 10:22
    Viktor
    0

    I just removed the disabled attribute for now and disabled the inputs with CSS.

  • 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