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

    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

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

Please Sign in or register to post replies

Write your reply to: