Skip to content

UmbracoCompare does not work #23

@J35P1N

Description

@J35P1N

Currently the UmbracoCompare tag does not appear to work. My fields are as follows:

    [UmbracoEmail(ErrorMessageDictionaryKey = "Enquiry.Error.Email")]
    [UmbracoRequired("Enquiry.Error.Required")]
    [UmbracoDisplayName("Enquiry.Email")]
    public string Email_address { get; set; }

    [UmbracoRequired("Enquiry.Error.Required")]
    [UmbracoCompare(errorMessageDictionaryKey: "Enquiry.Error.EmailConfirm", otherProperty: "Email_address")]
    [UmbracoDisplayName("Enquiry.EmailConfirm")]
    public string Confirm_Email { get; set; }

I have even tried doing this by just passing in the strings "Enquiry.Error.EmailConfirm" and "Email_address" but again this does not seem to work.

When I submit with the value "jason@test.com" in the Email_address field and "test@dave.com" in the Confirm_Email field, the model is not correctly invalidated and the remainder of my code is executed. I have also found that so far, none of the tags I have tried seem to work with JQuery Validate Unobtrusive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions