Dataform Required Validation: Field Name Required OR Field City Required RRS feed

  • Question

  •  Hi

     I've following Question:

    In my Dataform i've a Address with Name, Firstname, Street and City.

    I would like that the Field Name OR the Field City is Required. How can I do this?

    When I attribute the Field Name and the Field City with [Required()] than are both Fields Required.
    But i would the OR Operator.


    Wednesday, May 5, 2010 2:20 AM


  • Hi,

    Write custom validate code in property set method, if the two property are both null, throw ValidationException.


    Friday, May 7, 2010 8:25 AM

All replies