• Not Answered

How can i make a Custom WFFM ListBoxField a required field.

I have a Custom WFFM ListBoxField. Everything is working fine except that if you set it as a required field in the Form designer, A user can still submit the form without making a selection in the custom listbox. Below is the code i have tried...not working:-(


public class ListBoxAsButtons : ListBoxField
{
[DataType(DataType.MultilineText)]
public override List<string> Value { get; set; }

[DynamicRequired(ErrorMessage = "The {0} field is required.")]
public new bool IsRequired { get; set; }
}

1 Reply