HomeHome Product Discus... Product Discus...SmithCartSmithCartHow do I make a custom field required?How do I make a custom field required?
Previous
 
Next
New Post
8/1/2011 9:06 AM
 

I created a dropdown list to add to the registration page.  It shows up but I need for it to be a required field.  How do I do that?

 
New Post
8/3/2011 5:01 PM
 

Hi Clark,

To make a the custom dropdown list on your registration page required open up the CartRegiustration.ascx and add a required field validator for example:

<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="DropDownList1" InitialValue="Select" ErrorMessage="Please select an item"></asp:RequiredFieldValidator>


Thanks,

 
New Post
8/4/2011 1:29 PM
 

Thanks!  Actually Step1.ascx is the file where my dropdown was, so I applied it there and that did the trick.

 
New Post
8/4/2011 2:54 PM
 
Hi Clark,

Thanks for posting back with an update and thank you for your feedback!
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartHow do I make a custom field required?How do I make a custom field required?